Permalink
Browse files

Support wiki pages names in python modules.

Also this fixes showing python modules in available modules list.
  • Loading branch information...
Alexey Sokolov
Alexey Sokolov committed Jun 11, 2011
1 parent 79e7860 commit f7c4f5459c681fef86003dbc57f24ba49efc01a8
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/modpython/znc.py
View
@@ -151,6 +151,8 @@ def __len__(self):
class Module:
description = '< Placeholder for a description >'
+ wiki_page = ''
+
def __str__(self):
return self.GetModName()
@@ -498,6 +500,7 @@ def get_mod_info(modname, retmsg, modinfo):
cl = pymodule.__dict__[modname]
modinfo.SetGlobal(False)
modinfo.SetDescription(cl.description)
+ modinfo.SetWikiPage(cl.wiki_page)
modinfo.SetName(modname)
modinfo.SetPath(pymodule.__file__)
return 2
@@ -524,7 +527,8 @@ def get_mod_info_path(path, modname, modinfo):
return 0
cl = pymodule.__dict__[modname]
modinfo.SetGlobal(False)
- modinfo.SetDescription(get_descr(cl))
+ modinfo.SetDescription(cl.description)
+ modinfo.SetWikiPage(cl.wiki_page)
modinfo.SetName(modname)
modinfo.SetPath(pymodule.__file__)
return 1

0 comments on commit f7c4f54

Please sign in to comment.