diff options
| author | bwarsaw | 2002-03-29 20:25:34 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-03-29 20:25:34 +0000 |
| commit | 434b49463418f153f7f3d6df1e6f2c03d2662292 (patch) | |
| tree | 600409be9439add605a76dd94330941ceddb04bb /Mailman/Cgi/admin.py | |
| parent | 3e37a20533afc8aef0afbd82777e54c509a50c2b (diff) | |
| download | mailman-434b49463418f153f7f3d6df1e6f2c03d2662292.tar.gz mailman-434b49463418f153f7f3d6df1e6f2c03d2662292.tar.zst mailman-434b49463418f153f7f3d6df1e6f2c03d2662292.zip | |
Diffstat (limited to 'Mailman/Cgi/admin.py')
| -rw-r--r-- | Mailman/Cgi/admin.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 175ea989a..ce852ce16 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -502,18 +502,6 @@ def show_results(mlist, doc, category, subcat, cgidata): table.AddRow([Center(Header(2, _('Additional Member Tasks')))]) table.AddCellInfo(table.GetCurrentRowIndex(), 0, colspan=2, bgcolor=mm_cfg.WEB_HEADER_COLOR) - table.AddRow([_( - '''<li>Find members by - <a href="http://www.python.org/doc/current/lib/re-syntax.html" - >Python regular expression</a> (<em>regexp</em>)<br>''')]) - table.AddCellInfo(table.GetCurrentRowIndex(), 0, colspan=2) - table.AddRow([Label(_('Regexp:')), - TextBox('findmember', - value=cgidata.getvalue('findmember', ''), - size='75%')]) - table.AddRow([Center(SubmitButton('findmember_btn', - _('Search...')))]) - table.AddCellInfo(table.GetCurrentRowIndex(), 0, colspan=2) # Add a blank separator row table.AddRow([' ', ' ']) # Add a section to set the moderation bit for all members @@ -595,10 +583,10 @@ def add_options_table_item(mlist, category, subcat, table, item, detailsp=1): varname, descr, detailsp) val = get_item_gui_value(mlist, category, kind, varname, params) table.AddRow([descr, val]) - table.AddCellInfo(table.GetCurrentRowIndex(), 1, - bgcolor=mm_cfg.WEB_ADMINITEM_COLOR) table.AddCellInfo(table.GetCurrentRowIndex(), 0, bgcolor=mm_cfg.WEB_ADMINITEM_COLOR) + table.AddCellInfo(table.GetCurrentRowIndex(), 1, + bgcolor=mm_cfg.WEB_ADMINITEM_COLOR) @@ -737,6 +725,8 @@ def get_item_gui_value(mlist, category, kind, varname, params): return table elif kind == mm_cfg.Checkbox: return CheckBoxArray(varname, *params) + else: + assert 0, 'Bad gui widget type: %s' % kind @@ -789,6 +779,16 @@ def membership_options(mlist, subcat, cgidata, doc, form): header.AddCellInfo(header.GetCurrentRowIndex(), 0, colspan=2, bgcolor=mm_cfg.WEB_HEADER_COLOR) container.AddItem(header) + # Add a "search for member" button + table = Table(width='100%') + link = Link('http://www.python.org/doc/current/lib/re-syntax.html', + _('(help)')).Format() + table.AddRow([Label(_('Find member %(link)s:')), + TextBox('findmember', + value=cgidata.getvalue('findmember', '')), + SubmitButton('findmember_btn', _('Search...'))]) + container.AddItem(table) + container.AddItem('<hr><p>') usertable = Table(width="90%", border='2') # If there are more members than allowed by chunksize, then we split the # membership up alphabetically. Otherwise just display them all. |
