summaryrefslogtreecommitdiff
path: root/Mailman
Commit message (Collapse)AuthorAgeFilesLines
...
* GetAvailableLanguages(): Always add the server default language to thebwarsaw2001-05-251-0/+1
| | | | list of available languages.
* FormatOptionButton(): Teach this about the SuppressPasswordReminderbwarsaw2001-05-251-9/+9
| | | | user option.
* SuppressPasswordReminder: New per-list user option which allows a userbwarsaw2001-05-251-0/+1
| | | | | | to suppress password reminders for this list only. If they turn this option on for all lists in a virtual domain, they will not get the password reminder email at all.
* __openIndices(): os.mkdir() doesn't support keyword arguments.bwarsaw2001-05-251-1/+1
|
* 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.
* UserNotification.__init__(): Use the blessed way of doing typebwarsaw2001-05-221-1/+1
| | | | comparisons.
* __onefile(): It is possible that there is no list name in thebwarsaw2001-05-221-12/+13
| | | | | | | message's metadata, which means that the message does not originate from a mailing list. In that case, don't try to open the list (since you can't ;), and set the global language to the server's default language instead of the list's preferred language.
* process(): It is possible that the mlist passed in is None, whichbwarsaw2001-05-221-1/+4
| | | | | means that the message does not originate from a mailing list. In that case, admin should be the email address of MAILMAN_OWNER.
* 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.
* InitVars(): Don't call HTMLFormatter.InitVars() as this has beenbwarsaw2001-05-221-2/+0
| | | | | | removed. Create(): Don't call InitTemplates() as this has been removed.
* create(), remove(): Take an optional flag `cgi' which indicatesbwarsaw2001-05-221-2/+2
| | | | | whether this is being invoked through-the-web (ttw). This is required by the API but ignored by the functions in this module.
* MTA: Set the default to Manual.py, a best-effort fallback for listbwarsaw2001-05-221-6/+6
| | | | creation / removal.
* Fallback module for auto-creation/removal of lists.bwarsaw2001-05-221-0/+110
| | | | | | | | | | When a list is created or removed via the cli (i.e. bin/newlist), this prints an informative message containing the /etc/aliases entries to standard out. When a list is created or removed ttw, this sends an email message to MAILMAN_OWNER telling him what needs to be done (this isn't ideal but it's the best we can do).
* A few language related safety issues:bwarsaw2001-05-201-2/+8
| | | | | | | | | | GetConfigInfo(): If list support for a language was removed, but the list's preferred_language wasn't updated, you could get a ValueError when setting up the selection widget. Just use the first entry in the list. GetAvailableLanguages(): Ignore the language directory if LC_DESCRIPTIONS hasn't been updated to include the language.
* add_language(): A more convenient interface for mm_cfg.py files forbwarsaw2001-05-201-7/+2
| | | | | | | adding local site-wide language support. Get rid of the os.environ hacking and gettext calls; they're no longer necessary.
* dequeue(): Since IOError and OSError are both derived frombwarsaw2001-05-181-1/+1
| | | | | | EnvironmentError, it makes for slightly cleaner and more efficient code to catch the common base class rather than a tuple containing the two derived classes.
* send_i18n_digests(): In addition to passing in the user's preferredbwarsaw2001-05-181-1/+1
| | | | | language, also pass in the MailList object; maketext() digs the preferred language out of the list object.
* hold_for_approval(): In addition to passing in the user's preferredbwarsaw2001-05-181-4/+2
| | | | | language, also pass in the MailList object; maketext() digs the preferred language out of the list object.
* process(): In addition to passing in the user's preferred language,bwarsaw2001-05-181-1/+1
| | | | | also pass in the MailList object; maketext() digs the preferred language out of the list object.
* 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.
* Better support for command line scripts which want to set the defaultbwarsaw2001-05-181-5/+12
| | | | | | | | | | | language to the value of $LANGUAGE (or any of the other gettext module supported environment variables). Specifically, set_language(): Allow the `language' parameter to default to None, which tells gettext.translation() to use its own defaults. When the module global _translation is None, call set_language() with no arguments.
* GetConfigInfo(), AddMember(), ConfirmUnsubscription(),bwarsaw2001-05-181-8/+6
| | | | | | | | | | ApprovedAddMember(), DeleteMember(): Instead of passing in the list's preferred language, simple pass in self; maketext() digs the preferred language out of the list object. In AddMember(), ConfirmUnsubscription(), and ApprovedAddMember(), the argument `lang' is also passed in case the user chose a language other than the list's default.
* AddApprovalMsg(), ProcessHelpCmd(): Instead of passing in the list'sbwarsaw2001-05-181-2/+2
| | | | | preferred language, simple pass in self; maketext() digs the preferred language out of the list object.
* __read(), _seed(): Since IOError and OSError are both derived frombwarsaw2001-05-181-3/+3
| | | | | | EnvironmentError, it makes for slightly cleaner and more efficient code to catch the common base class rather than a tuple containing the two derived classes.
* HoldSubscription(), __refuse(): Instead of passing in the list'sbwarsaw2001-05-181-2/+2
| | | | | preferred language, simple pass in self; maketext() digs the preferred language out of the list object.
* Removed some unnecessary imports.bwarsaw2001-05-181-4/+1
|
* InitVars(): Removed, since self._template_dir is no longer necessarybwarsaw2001-05-181-43/+1
| | | | | | | | | | | | | | | | and all references to this volatile instance variable have been removed. SnarfHTMLTemplate(): Also removed, since maketext() does all this in a more general way. ParseTags(): Use Utils.maketext() instead of SnarfHTMLTemplate(). InitTemplates(): Because of the new support for expanded template searches, the only thing that's necessary for a list to support a language is for it to have a (possibly empty) directory named after the language code. Thus, the copying of template files done in this method are unnecessary.
* GetConfigInfoy(): Instead of passing in the list's preferred language,bwarsaw2001-05-181-4/+3
| | | | | | | | simple pass in self; maketext() digs the preferred language out of the list object. SetUserDigest(): Add a note about the (possibly) redundant self.Save() call.
* SendSubscribeAck(), MailUserPassword(): In addition to passing in thebwarsaw2001-05-181-4/+3
| | | | | | | | user's preferred language, also pass in self so maketext() can dig out the list's preferred language if for some odd reason the user's preferred language can't be found. Also, remove the obsolete os.environ['LANG'] setting.
* HandleBouncingAddress(): Instead of passing in the list's preferredbwarsaw2001-05-181-3/+3
| | | | | language, simple pass in self; maketext() digs the preferred language out of the list object.
* T.__init__(), T.new_archive(), BSDDBdatabase.__openIndices(): Usebwarsaw2001-05-181-7/+20
| | | | os.mkdir() instead of Utils.mkdir().
* __openIndices(): Use os.mkdir() instead of Utils.mkdir().bwarsaw2001-05-181-6/+9
|
* Remove an unnecessary import.bwarsaw2001-05-181-3/+1
|
* Archiver.InitVars(): Use os.mkdir() instead of Utils.mkdir().bwarsaw2001-05-181-6/+7
|
* maketext(): Better support for template specialization levels. Thisbwarsaw2001-05-181-37/+83
| | | | | | | | | | | | function now takes an additional optional argument `mlist' which must be a MailList object. It implements an expanding search order for a specific template file: list-centric, domain-centric, site-centric, global default. Each of these prefixes in turn the explicit language passed as an argument, then the list's preferred language, then the site's default language. The first matching template file found is returned. mkdir(): Removed. Use os.mkdir() instead.
* 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.
* Create(): Add a call to CheckValues() so that even if DEFAULT_URL isbwarsaw2001-05-161-0/+1
| | | | | misconfigured in mm_cfg.py to be missing a trailing slash, one will be added upon list creation.
* 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
* GetBaseArchiveURL(): Instead of relying on the configuration variablebwarsaw2001-05-161-4/+2
| | | | | PRIVATE_ARCHIVE_URL, calculate the url to the `private' cgi script via self.GetScriptURL().
* PRIVATE_ARCHIVE_URL: Removed; we can calculate this on the fly.bwarsaw2001-05-161-1/+0
|
* WebAuthenticate(): Minor simplification.bwarsaw2001-05-161-3/+3
|
* syslog() entries should go to logs/error not logs/qrunner. It'sbwarsaw2001-05-151-5/+5
| | | | highly annoying to have to tail more than one log file to find bugs.