From: <dar...@us...> - 2010-12-24 15:04:29
|
Revision: 2204 http://znc.svn.sourceforge.net/znc/?rev=2204&view=rev Author: darthgandalf Date: 2010-12-24 15:04:23 +0000 (Fri, 24 Dec 2010) Log Message: ----------- Make NV API to be easier fot python modules. Modified Paths: -------------- trunk/modules/modpython/znc.py Modified: trunk/modules/modpython/znc.py =================================================================== --- trunk/modules/modpython/znc.py 2010-12-24 07:31:44 UTC (rev 2203) +++ trunk/modules/modpython/znc.py 2010-12-24 15:04:23 UTC (rev 2204) @@ -118,8 +118,6 @@ 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 @@ 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__ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |