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
This commit is contained in:
darthgandalf
2010-12-24 15:04:23 +00:00
parent 88c84efc2f
commit 1854e14749

View File

@@ -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__