diff options
| author | bwarsaw | 2001-08-17 05:43:44 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-08-17 05:43:44 +0000 |
| commit | 260462546ad13795b0d1db55a61224ec51d2b596 (patch) | |
| tree | 8d8ba41174a0b957a0d10f90954a3bc5cc646ced /Mailman/Cgi/admin.py | |
| parent | f00907211a40a1cddee2a34f3560d82e6424fe7e (diff) | |
| download | mailman-260462546ad13795b0d1db55a61224ec51d2b596.tar.gz mailman-260462546ad13795b0d1db55a61224ec51d2b596.tar.zst mailman-260462546ad13795b0d1db55a61224ec51d2b596.zip | |
option_help(): Simplify the error message when the VARHELP variable is
invalid.
password_inputs(): Add a <a name...> tag here so we can create a
<a href="general#passwords"> link directly to this section.
Diffstat (limited to 'Mailman/Cgi/admin.py')
| -rw-r--r-- | Mailman/Cgi/admin.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 182f348dc..f5b1680b3 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -299,8 +299,7 @@ def option_help(mlist, varhelp): break # Print an error message if we couldn't find a valid one if not item: - path_info = os.environ.get('PATH_INFO') - bad = _('No valid variable details request not found: %(path_info)s') + bad = _('No valid variable name found.') add_error_message(doc, bad) print doc.Format() return @@ -568,13 +567,12 @@ def get_item_characteristics(record): def get_item_gui_value(mlist, kind, varname, params): """Return a representation of an item's settings.""" if kind == mm_cfg.Radio or kind == mm_cfg.Toggle: - # - # if we are sending returning the option for subscribe - # policy and this site doesn't allow open subscribes, - # then we have to alter the value of mlist.subscribe_policy - # as passed to RadioButtonArray in order to compensate - # for the fact that there is one fewer option. correspondingly, - # we alter the value back in the change options function -scott + # If we are returning the option for subscribe policy and this site + # doesn't allow open subscribes, then we have to alter the value of + # mlist.subscribe_policy as passed to RadioButtonArray in order to + # compensate for the fact that there is one fewer option. + # Correspondingly, we alter the value back in the change options + # function -scott # # TBD: this is an ugly ugly hack. if varname[0] == '_': @@ -996,10 +994,11 @@ def password_inputs(): table.AddRow([Center(Header(2, _('Change list ownership passwords')))]) table.AddCellInfo(table.GetCurrentRowIndex(), 0, colspan=2, bgcolor=mm_cfg.WEB_HEADER_COLOR) - table.AddRow([_("""The <em>list administrators</em> are the people who have -ultimate control over all parameters of this mailing list. They are able to -change any list configuration variable available through these administration -web pages. + table.AddRow([_("""\ +<a name="passwords">The</a> <em>list administrators</em> are the people who +have ultimate control over all parameters of this mailing list. They are able +to change any list configuration variable available through these +administration web pages. <p>The <em>list moderators</em> have more limited permissions; they are not able to change any list configuration variable, but they are allowed to tend |
