| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
the error code on e.errno, not e.code. Found by Mentor Cana.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
| |
trick-out of template_data. Add back the definition of _ (provided by
Juan Carlos Rey Anaya).
|
| |
|
|
| |
it, and we don't have it to start with!
|
| |
|
|
|
|
| |
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(): 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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
as translatable.
|
| |
|
|
| |
`mischief' instead of `error'.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
alternatively highlight the list rows.
|
| |
|
|
| |
alternatively highlight the list rows.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
add_error_message(): Use WEB_ERROR_COLOR instead of hardcoded #ff0000
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
moved to the options.py file.
|
| |
|
|
|
| |
document background color as an argument anymore. Other colors are no
longer hardcoded, but taken from mm_cfg.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
argument anymore. Other colors are no longer hardcoded, but taken
from mm_cfg.
|
| |
|
|
|
| |
color as an argument anymore. Other colors are no longer hardcoded,
but taken from mm_cfg.
|
| |
|
|
|
| |
the document background color as an argument anymore. Other colors
are no longer hardcoded, but taken from mm_cfg.
|
| |
|
|
|
|
| |
argument to Format() anymore.
success(): Handle the the new CHANGE_OF_ADDRESS confirmable action.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
authenticate(): This is removed as obsolete because of the new
authentication scheme.
|
| |
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
password reminder for this list. Support is added for
<mm-dont-get-password-reminder-button> and
<mm-get-password-reminder-button> replacements.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
translatable.
|
| |
|
|
| |
pass in cgi=1 to let it know that it's being invoked ttw.
|
| |
|
|
| |
pass in cgi=1 to let it know that it's being invoked ttw.
|
| |
|
|
|
| |
pass in the MailList object; maketext() digs the preferred language
out of the list object.
|
| |
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
simply pass in the MailList object; maketext() digs the preferred
language out of the list object.
|
| |
|
|
|
| |
simple pass in self; maketext() digs the preferred language out of the
list object.
|
| |
|
|
| |
script was not setting up the i18n environment in the `blessed' way.
|
| |
|
|
|
| |
Kikuchi. Japanese translations have difficulty when the sentences are
split.
|
| |
|
|
|
| |
Tokio Kikuchi. Japanese translations have difficulty when the
sentences are split.
|
| |
|
|
|
|
|
|
|
| |
displayed:
- use the private.html template instead of private.txt
- calculate the ACTION attribute via the absolute url back to the
`private' cgi script
|
| |
|
|
| |
them to plain text first.
|
| | |
|
| |
|
|
| |
delete a list: list-owner, list-creator, site-admin.
|