summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/getpass.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2000-08-01Cleanups to fix relative/absolute script url calculation in responsebwarsaw1-3/+3
to SF Bug #110753. Specifically, PrintRequests(): Use Utils.ScriptURL() instead of GetNestingLevel(), and GetScriptURL() instead of GetRelativeScriptURL(). Also fix usage of GetOptionsURL() for new interface.
2000-08-01Cleanups to fix relative/absolute script url calculation in responsebwarsaw1-17/+14
to SF Bug #110753. Specifically, FormatAdminOverview(), FormatConfiguration(), FormatOptionHelp(), GetItemGuiDescr(): Use Utils.ScriptURL() instead of GetNestingLevel(), and GetScriptURL() instead of GetRelativeScriptURL(). Also fix usage of GetOptionsURL() for new interface.
2000-08-01Digest.TemplateRefs(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01Administrivia.rejection_notice(), hold_for_approval():bwarsaw1-2/+2
GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)
2000-08-01main(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw2-3/+3
2000-08-01SendExplanation(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01InitVars(): Use self.internal_name()bwarsaw1-7/+5
GetMailmanFooter(), FormatUsers(), FormatFormStart(): GetRelativeScriptURL() => GetScriptURL()
2000-08-01SendSubscribeAck(), MailUserPassword() => GetScriptURL(...,bwarsaw1-3/+3
absolute=1)
2000-08-01HandleBouncingAddress(): GetAbsoluteScriptURL() => GetScriptURL(...,bwarsaw1-1/+1
absolute=1)
2000-08-01ProcessInfoCmd(), ProcessHelpCmd(): GetAbsoluteScriptURL() =>bwarsaw1-2/+2
GetScriptURL(..., absolute=1)
2000-08-01HoldSubscription(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-5/+5
Also, remove the link to Pipermail on Starship. This is way out of date.
2000-08-01GetRelativeScriptURL() => GetScriptURL()bwarsaw1-1/+1
2000-08-01Massive cleanup to fix relative/absolute script url calculation inbwarsaw1-25/+6
response to SF Bug #110753. Specifically, GetScriptURL(): Interface change; this now takes an `absolute' flag defaulting to always use relative urls. This is now essentially just a wrapper around Utils.ScriptURL() except that it tacks on the list's name. GetOptionsURL(): Same interface change. GetAbsoluteScriptURL(), GetAbsoluteOptionsURL(): Removed. All uses changed to GetScriptURL().
2000-08-01Massive cleanup to fix relative/absolute script url calculation inbwarsaw1-12/+23
response to SF Bug #110753. Specifically, GetNestingLevel(): removed ScriptURL(): New utility function to calculate relative and absolute urls. The basic approach is this: 1. figure out where we are by using REQUEST_URI or SCRIPTNAME+PATH_INFO if that isn't defined in our environment. 2. figure out what the Mailman base url is by taking the `path' component of a urlparse() of the list's web_page_url configvar or DEFAULT_URL if that isn't provided in the arguments. 3. calculate what the relative path is from where we are to baseurl; express this as a string of ../'s 4. tack on the relative url to where we want to go, i.e. the target Elaborations: Optional `absolute' if set always calculates the absolute url as web_page_url/DEFAULT_URL + target. absolute should only be set when generating urls for emails. mm_cfg.CGIEXT is always tacked onto the end, meaning target is supposed to be just the script name and nothing else (anything else should be concatenated onto the return value of this function).
2000-08-01process(): Don't bomb out if there's no From: header.bwarsaw1-1/+1
2000-07-27do_output(): Hrvoje Niksic rightly points out that we need tobwarsaw1-1/+7
special-case `subscribe_policy' when ALLOW_OPEN_SUBSCRIBE is false. Yuk.
2000-07-27HasExplicitDest(): Integrating a patch from Gergely Madarasz frombwarsaw1-1/+1
20-Jun-2000; Resent-CC: should also be considered an explicit destination.
2000-07-27Added yet another item tha twould be neat to have!bwarsaw1-0/+2
2000-07-27Bumping to 2.0beta5.bwarsaw1-2/+2
2000-07-27main(): Fixed typo in syslog() call.bwarsaw1-1/+1
2000-07-27process(): Because this module modifies the message object, set thebwarsaw3-0/+10
_dirty flag so the text will be forced to disk in the event of an Enqueue().
2000-07-27Enqueue(): Watch for the _dirty flag in the msgdata dictionary. Thisbwarsaw1-3/+6
forces a write of the message text back to disk, even if it already exists. This is used when the message has been changed (e.g. new or changed header, etc.).
2000-07-26process(): If there's a bogus template for the header or footer,bwarsaw1-3/+13
causing the dictionary interpolation to fail, log this to logs/error and insert a big red warning sign instead.
2000-07-26main(): Unmarshal the .db file before creating the Message object.bwarsaw1-4/+5
Pass in the `filebase' value to the Message constructor to make sure the message uses the same hash value as before.
2000-07-26One more try...bwarsaw1-5/+8
Enqueue(): Only calculate a new filebase (SHA hash) if the object wasn't assigned one in its constructor. Go back to including the current float time in the hash input. Message.__init__(): Take an optional `filebase' argument which can be restored from an enqueued message. This guarantees that a message, once assigned a hash value for its filebase, continues to use that filebase for its entire life.
2000-07-26QFILE_SCHEMA_VERSION: bump to 2.bwarsaw1-1/+1
2000-07-26Enqueue(): Oops, you can't include the current time since the hashingbwarsaw1-1/+1
algorithm needs to be reproducible.
2000-07-26Enqueue(): Elaborate on the text fed to the SHA hashing function forbwarsaw1-2/+4
calculating the file name. If a message is sent to two lists simultaneously and the receiving MTA doesn't distinguish them with something like a Delivered-To: header (as Postfix does), the hashes could be the same, prevent one or the other list from receiving the message. Now the hash is composed of the message's text, the destination list's name, and a string representation of the current floating point time. That ought to be unique enough for every message.
2000-07-25optionslinks(): Use GetScriptURL(relative=1) for calculating the path.bwarsaw1-1/+1
SF Patch #100556.
2000-07-25FormatFormStart(): Use GetScriptURL(relative=1) for calculating thebwarsaw1-1/+1
action path. SF Patch #100556.
2000-07-25PAGE: Include some information on cookies in the login screen. Closesbwarsaw1-1/+8
SF Bug #110142.
2000-07-25Remove the headers from this template.bwarsaw1-7/+0
2000-07-25OutgoingMessage.__init__(): Avoid the messy semantics ofbwarsaw1-4/+12
rfc822.Message when the first line contains a colon. A blank header-terminating line is prepended to the given text if the first line contains a colon.
2000-07-24do_output(): Needed to add `autoreply' category to get thebwarsaw1-1/+1
Autoresponse config variables to dump. Also, massage FileUpload type vars the same way that Text vars are processed.
2000-07-24do_output(): Added `autoreply' to list of categories.bwarsaw1-2/+2
2000-07-24Applying the patches from SF Bug #109217 that are not specific tobwarsaw1-4/+7
chuqui's site. Specifically, process_form(): slight rewrite of the MMSubscribeNeedsConfirmation text.
2000-07-24Applying the patches from SF Bug #109217 that are not specific tobwarsaw1-10/+9
chuqui's site. Specifically, FormatListinfoOverview(): Capitalize "Mailing Lists"; put "Welcome!" in +2 font; slight rewrite of the advertised greeting; put the "List" and "Description" table headers in +2 font.
2000-07-24ApprovedAddMembers(), DeleteMember(): Refinement of twouter's patch tobwarsaw1-8/+5
fix the missing To: line in admin notifications of subscribes and unsubscribes.
2000-07-24UserNotification.__init__(): If recip is a list, then string join thebwarsaw1-3/+7
elements for the value of the To: field, and assign a copy of the list to self.recips. Otherwise do the old behavior.
2000-07-24process(): Be sure to wrap() the autoresponse text, since it's goingbwarsaw1-1/+1
out as email.
2000-07-24Status messages are printed to stderr using the new Utils.write()bwarsaw1-9/+13
method. Fixes SF Bug #108169.
2000-07-24write(): Oops, de-Python-2.0-ification.bwarsaw1-1/+1
2000-07-24write(): Function that acts like print, but let's you specify thebwarsaw1-0/+20
output file, whether a trailing newline should be printed, and the separator string. (Sidenote: this is partly to play with some suggestions currently being floated on the python-dev mailing list).
2000-07-22HeadlessDocument.Format(): Oops! My last change removed one too manybwarsaw1-1/+1
newlines.
2000-07-22process(): Addressing both SF bug #108167 and patch #100861, thisbwarsaw1-1/+11
patch writes success and failure messages to logs/post. It retains the writing of smtp delivery timing messages to logs/smtp.
2000-07-22print_traceback(), top-level: Remove the Cache-control: and Expires:bwarsaw1-4/+0
headers. These caused problems with the back button and didn't really solve an existing problem.
2000-07-22loginpage: Remove the Cache-control: and Expires: headers. Thesebwarsaw1-5/+1
caused problems with the back button and didn't really solve an existing problem.
2000-07-22Document.Format(), HeadlessDocument.Format(): Remove thebwarsaw1-9/+1
Cache-control: and Expires: headers. These caused problems with the back button and didn't really solve an existing problem.
2000-07-22process(): Set Sender: and Errors-To: either the the value specifiedbwarsaw1-2/+2
in the msgdata dictionary, falling back to the -admin address.