From f058b7ee7e65ac8882b91fe5e998555f6fa780af Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 19 Aug 2004 01:49:37 +0000 Subject: [PATCH] Add notation of whether a config var is channel specific --- tools/generate-plugin-documentation.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/generate-plugin-documentation.py b/tools/generate-plugin-documentation.py index 2d7c12e26..40b977304 100755 --- a/tools/generate-plugin-documentation.py +++ b/tools/generate-plugin-documentation.py @@ -240,10 +240,11 @@ def makePluginDocumentation(pluginWindow): pluginconf = conf.supybot.plugins.get(pluginName) fd.write(textwrap.dedent( '''
- + + ''' % pluginName)) trClass = trClasses[trClass] for config in [(c[0], c[1]) for c in\ @@ -256,9 +257,9 @@ def makePluginDocumentation(pluginWindow): help = cgi.escape(help) trClass = trClasses[trClass] fd.write(textwrap.dedent(''' - + - ''' % (trClass, name, name, default, help))) + ''' % (trClass, name, default, config[1].channelValue, help))) except registry.NonExistentRegistryEntry: pass fd.write('
Configuration Variables for %s
Configuration Variables for %s
Config Var Default ValueChannel Specific Help
%s%s
%s%s%s %s
\n')