mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Update to show config variables for each plugin
This commit is contained in:
parent
fd706575be
commit
3ea150cbd3
@ -237,18 +237,19 @@ def makePluginDocumentation(pluginWindow):
|
||||
try:
|
||||
pluginconf = conf.supybot.plugins.get(pluginName)
|
||||
fd.write(textwrap.dedent('''</table><br /><table><tr id="trheader">
|
||||
<td>Config Var</td><td>Help</td>'''))
|
||||
<td>Config Var</td><td>Default Value</td><td>Help</td>'''))
|
||||
trClass = trClasses[trClass]
|
||||
for config in [(c[0], c[1].help) for c in\
|
||||
for config in [(c[0], c[1], c[1].help) for c in\
|
||||
pluginconf.getValues(getChildren=True,fullNames=False)]:
|
||||
name = config[0]
|
||||
help = config[1]
|
||||
default = str(config[1])
|
||||
help = config[2]
|
||||
help = cgi.escape(help)
|
||||
trClass = trClasses[trClass]
|
||||
fd.write(textwrap.dedent('''
|
||||
<tr class="%s" id="%s"><td>%s</td>
|
||||
<tr class="%s" id="%s"><td>%s</td><td style="width:>%r</td>
|
||||
<td class="detail">%s</td></tr>
|
||||
''' % (trClass, name, name, help)))
|
||||
''' % (trClass, name, name, default, help)))
|
||||
except registry.NonExistentRegistryEntry:
|
||||
pass
|
||||
fd.write('</table>\n')
|
||||
|
Loading…
Reference in New Issue
Block a user