summaryrefslogtreecommitdiff
path: root/Mailman/Cgi
Commit message (Collapse)AuthorAgeFilesLines
...
* show_post_requests(): If the heldmsg is lost, the IOError will havebwarsaw2001-07-121-1/+1
| | | | the error code on e.errno, not e.code. Found by Mentor Cana.
* main(): Catch MMNoSuchUserError which can happen if two unsub requestsbwarsaw2001-07-111-0/+4
| | | | | | were sent and the user confirmed (by web click) them both. The first will delete the member but the second will raise this exception, so do something more sensible than letting it trickle to the top.
* main(): Forgot to re-install the real translation context after thebwarsaw2001-07-111-0/+1
| | | | | trick-out of template_data. Add back the definition of _ (provided by Juan Carlos Rey Anaya).
* main(): don't call handle_no_list() with a 'doc' argument: it doesn't wanttwouters2001-07-101-1/+1
| | | | it, and we don't have it to start with!
* Need to import sys!bwarsaw2001-07-061-14/+18
| | | | | | change_options(): Fixed the call to ApprovedAddMembers() so that we're correctly passing through the values of the form variables send_welcome_msg_to_this_batch and send_notifications_to_list_owner.
* main(), show_results(): Removed unnecessary global declarations.bwarsaw2001-07-031-5/+1
| | | | | | | | | main(): If the WebAuthenticate() fails, search for the form key `adminpw' -- not `admlogin' -- to decide whether to include the error message or not. The former is the cgi key for the password field, while the latter is the key for the submit button, which isn't included in a Mozilla posted form if the Enter key is hit instead of clicking on the button.
* main(): Fixed the handling of the user's preferred language. Now itbwarsaw2001-06-271-10/+10
| | | | | | | | | is retrieved out of the cgidata early on, so as to catch any new language setting the user is making. Falls back to using the last stored user preference. Also, fixed indentation bug which prevented user's language setting to take effect unless they had set some other option as well.
* main(): Fix this to use the new authentication machinery.bwarsaw2001-06-271-5/+13
|
* Better syslog() calling conventions. Also, don't mark syslog messagesbwarsaw2001-06-2710-14/+12
| | | | as translatable.
* Better syslog() calling conventions. Also, log some messages tobwarsaw2001-06-271-4/+4
| | | | `mischief' instead of `error'.
* print_results(): Toggle off the output of <head><body> tags by settingbwarsaw2001-06-251-0/+5
| | | | | | doc.suppress_head to 1. This is because the output generated from this function comes largely from the subscribe.html template, which includes those tags.
* options_page(): Toggle off the output of <head><body> tags by settingbwarsaw2001-06-251-0/+5
| | | | | | doc.suppress_head to 1. This is because the output generated from this function comes largely from the options.html template, which includes those tags.
* listinfo_overview(): Applied David Champion's SF patch 401452 tobwarsaw2001-06-071-4/+9
| | | | alternatively highlight the list rows.
* admin_overview(): Applied David Champion's SF patch 401452 tobwarsaw2001-06-071-3/+9
| | | | alternatively highlight the list rows.
* Globally, WEB_HEADERCOLOR => WEB_HEADER_COLORbwarsaw2001-06-073-5/+5
|
* main(): Better, more consistent error pages, after a suggestion bybwarsaw2001-06-071-12/+25
| | | | | | | | | David Champion (SF patch #401372). add_error_message(): Default tag is now 'Error: ' which was the more commonly used tag. Globally, WEB_HEADERCOLOR => WEB_HEADER_COLOR
* Globally, WEB_HEADERCOLOR => WEB_HEADER_COLORbwarsaw2001-06-071-9/+9
| | | | add_error_message(): Use WEB_ERROR_COLOR instead of hardcoded #ff0000
* options_page(): Missed an i18n marking. Found by Ousmane Wilane.bwarsaw2001-06-021-1/+1
|
* Updates for the new authentication scheme. Note that there are otherbwarsaw2001-06-011-46/+40
| | | | | | | | | | | | | | | cleanups we could do to this file, but there are other priorities at the moment. Cleaned up the imports. Removed login_attemped and _list unused module globals. i18n setup. main(): Set the i18n language, first to the server default, then to the list preferred, once we have a valid list, and to the user's preferred language once we know that. Updates for new string methods. Removed a call to IsListInitialized() and use return instead of sys.exit(0). Better cgidata style. Use new WebAuthenticate() mechanisms to authenticate the user.
* main(): Convert to the new world order for web authentication,bwarsaw2001-05-311-13/+18
| | | | | | | | allowing the list-admin, list-moderator, or site-moderator access to the admindb. Also, don't hard code the background color. handle_no_list(): Clean this up by using Utils.ScriptURL() to give us the url to the admin overview page.
* A considerable rewrite to support many new features, and to obviatebwarsaw2001-05-311-34/+506
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the need for the handle_opts.py script. Specifically, main(): - Do all form processing in this script, and point the form's action back at this script. This is so we don't need handle_opts anymore. - Protect access to this form behind a login screen which also contains a password mail-back button, and a quick unsubscribe (with confirmation) button. - Use the new world order for web authentication, allowing AuthUser, AuthListAdmin, and AuthSiteAdmin to access a user's options page. - Add a "logout" button to the option page, and remove any need to enter passwords once we're at the options page. - Add support for a change-of-address, including the ability to change the membership address globally for all lists the user is a member of (requires confirmation from the new address). - Add support for global change of password. - Add support for global setting of enable/disable flag, and of password reminder flag. - Use IsMember() to test for address membership. Also, we don't need to pass the document background color as an argument anymore. Other colors are no longer hardcoded, but taken from mm_cfg.
* This file is no longer necessary. All the functionality has beenbwarsaw2001-05-311-346/+0
| | | | moved to the options.py file.
* main(), process_form(), print_results(): We don't need to pass thebwarsaw2001-05-311-5/+5
| | | | | document background color as an argument anymore. Other colors are no longer hardcoded, but taken from mm_cfg.
* main(): Use the new world order for authentication, by usingbwarsaw2001-05-311-39/+25
| | | | | | | | mlist.WebAuthenticate() and passing in the authentication contexts. In this case when the roster is private to members, the authcontext is the AuthUser, AuthListModerator, AuthListAdmin, and AuthSiteAdmin. When the context is list-admin only, then the authcontext is AuthListModerator, AuthListAdmin, and AuthSiteAdmin.
* main(), process_request(), request_deletion(): We don't need to passbwarsaw2001-05-311-16/+21
| | | | | | | | | | the document background color as an argument anymore. Other colors are no longer hardcoded, but taken from mm_cfg. process_request(): Use the new world order for authentication, by using mlist.WebAuthenticate() and passing in the authentication contexts. In this case the AuthCreator, AuthListAdmin, and AuthSiteAdmin can all delete lists.
* main(): We don't need to pass the document background color as anbwarsaw2001-05-312-7/+7
| | | | | argument anymore. Other colors are no longer hardcoded, but taken from mm_cfg.
* listinfo_overview(): We don't need to pass the document backgroundbwarsaw2001-05-311-3/+3
| | | | | color as an argument anymore. Other colors are no longer hardcoded, but taken from mm_cfg.
* main(), process_request(), request_creation(): We don't need to passbwarsaw2001-05-311-18/+21
| | | | | the document background color as an argument anymore. Other colors are no longer hardcoded, but taken from mm_cfg.
* main(): We don't need to pass the document background color as anbwarsaw2001-05-311-6/+11
| | | | | | argument to Format() anymore. success(): Handle the the new CHANGE_OF_ADDRESS confirmable action.
* main(): Convert to the new world order for authentication. We don'tbwarsaw2001-05-311-87/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use Auth.authentication() anymore because mlist.WebAuthenticate() now does the job nicely, with all the acceptable authentication contexts passed as an argument. Also, when logging out, ZapCookie() takes an authentication context (in this case it's AuthListAdmin). main(), admin_overview(), option_help(), show_variables(), add_options_table_item(), membership_options(), submit_button(): We don't need to pass the document background color as an argument anymore. Other colors are no longer hardcoded, but taken from mm_cfg. show_results(): Small change to admindb link text; these are called moderator requests now. password_inputs(): Change this section so that it prompts for both changes to the list owner passwords, and the list moderator passwords, the latter of which gains access only to the pending requests page. change_options(): Because we no longer require the admin password in order to change the password (because it would have had to have been supplied in order to even get here), we can simplify the password change processing. We also need to add the moderator password change processing, and this should happen before the list owner password change processing, because the latter requires that the authorization cookie be regenerated.
* Stupid change because the last checkin failed to say:bwarsaw2001-05-311-1/+2
| | | | | authenticate(): This is removed as obsolete because of the new authentication scheme.
* loginpage(): Add the standard footer to the login page. The loginbwarsaw2001-05-311-35/+8
| | | | | | | template is now in admlogin.html instead of admlogin.txt. If the scriptname is "admindb", then we're asking for the list-moderators password (although the list owner's password will still work of course).
* main(): The options.html template now has a field for suppressing thebwarsaw2001-05-251-0/+4
| | | | | | password reminder for this list. Support is added for <mm-dont-get-password-reminder-button> and <mm-get-password-reminder-button> replacements.
* process_form(): Add support for SuppressPasswordReminder user option.bwarsaw2001-05-251-0/+4
|
* On suggestion of Vizi Szilard, added a "Clear Form" button.bwarsaw2001-05-251-5/+7
| | | | | | | | | main(): Key off of the 'doit' field in the form data to determine whether process_request() or request_creation() should be called. Add support for the 'clear' button. request_creation(): Some strings were erroneously not marked as translatable.
* membership_options(): The search button string should be marked asbwarsaw2001-05-251-1/+1
| | | | translatable.
* process_request(): When calling the MTA-specific remove() function,bwarsaw2001-05-221-1/+1
| | | | pass in cgi=1 to let it know that it's being invoked ttw.
* process_request(): When calling the MTA-specific create() function,bwarsaw2001-05-221-1/+1
| | | | pass in cgi=1 to let it know that it's being invoked ttw.
* main(): Instead of passing in the list's preferred language, simplybwarsaw2001-05-181-1/+1
| | | | | pass in the MailList object; maketext() digs the preferred language out of the list object.
* main(): Don't call HTMLFormatter.InitVars() since mlist._template_dirbwarsaw2001-05-181-9/+6
| | | | | | | | | | has been removed. FormatHTML(): Call Utils.maketext() instead of SnarfHTMLTemplate() since that's also been removed. ChangeHTML(): Don't use mlist._template_dir to find the path to the list-centric template. Instead use mlist.fullpath().
* main(): Instead of passing in the list's preferred language, simplybwarsaw2001-05-181-5/+6
| | | | | | | | | pass in the MailList object; maketext() digs the preferred language out of the list object. Also, use mm_cfg.MAILMAN_OWNER as the originator of the mail message instead of `mailman-owner@' + mlist.host_name. This closes SF bug #424389, although I'm not 100% sure this is the right fix.
* show_requests(): Instead of passing in the list's preferred language,bwarsaw2001-05-181-1/+1
| | | | | simply pass in the MailList object; maketext() digs the preferred language out of the list object.
* loginpage(): Instead of passing in the list's preferred language,bwarsaw2001-05-181-1/+1
| | | | | simple pass in self; maketext() digs the preferred language out of the list object.
* Application of SF patch #420396, submitted by Tokio Kikuchi. Thisbwarsaw2001-05-162-7/+25
| | | | script was not setting up the i18n environment in the `blessed' way.
* admin_overview(): Application of SF patch #420396, submitted by Tokiobwarsaw2001-05-161-8/+6
| | | | | Kikuchi. Japanese translations have difficulty when the sentences are split.
* listinfo_overview(): Application of SF patch #420396, submitted bybwarsaw2001-05-161-4/+3
| | | | | Tokio Kikuchi. Japanese translations have difficulty when the sentences are split.
* main(): Change the way the private archives authentication page isbwarsaw2001-05-161-5/+7
| | | | | | | | | displayed: - use the private.html template instead of private.txt - calculate the ACTION attribute via the absolute url back to the `private' cgi script
* get_item_gui_description(): Can't add two Label() widgets, so formatbwarsaw2001-05-111-2/+2
| | | | them to plain text first.
* Add a "notify list owner?" widget, defaulting to Yes.bwarsaw2001-05-101-15/+31
|
* process_request(): Allow any of the following passwords to be used tobwarsaw2001-05-091-1/+3
| | | | delete a list: list-owner, list-creator, site-admin.