From 1854e14749c7d0cfa223e17bd849643cbad6baae Mon Sep 17 00:00:00 2001 From: darthgandalf Date: Fri, 24 Dec 2010 15:04:23 +0000 Subject: [PATCH] Make NV API to be easier fot python modules. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2204 726aef4b-f618-498e-8847-2d620e286838 --- modules/modpython/znc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/modpython/znc.py b/modules/modpython/znc.py index 3570fe8d..508cd771 100644 --- a/modules/modpython/znc.py +++ b/modules/modpython/znc.py @@ -118,8 +118,6 @@ class Module: t = timer() t._ctimer = CreatePyTimer(self._cmod, interval, cycles, label, description, t) return t - def GetNV(self): - return self._nv def GetSubPages(self): pass def OnShutdown(self): pass def OnBoot(self): pass @@ -253,7 +251,7 @@ def load_module(modname, args, user, retmsg, modpython): cl = pymodule.__dict__[modname] module = cl() module._cmod = CreatePyModule(user, modname, datapath, module, modpython) - module._nv = ModuleNV(module._cmod) + module.nv = ModuleNV(module._cmod) descr = None if '__doc__' in cl.__dict__: descr = cl.__doc__