summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/Auth.py
Commit message (Collapse)AuthorAgeFilesLines
* Bite the bullet: rename the Mailman package to mailman.Barry Warsaw2008-02-271-60/+0
|
* Tweak copyright years.Barry Warsaw2008-02-071-1/+1
|
* Restoreing i18n in 2.2tkikuchi2007-03-011-2/+2
| | | | | | | | - As the default type of string in mailman-2.2 was set to 'unicode', i18n codes became need to be fixed. - Fixed: admin web interface. Other web interfaces needs more verification. - Fixed: non-digest delivery. Stil to go: digest and archive.
* Update copyright years.bwarsaw2007-01-191-1/+1
|
* Fix environ['SCRIPT_NAME'] to match CGI spec.tkikuchi2006-11-131-1/+1
| | | | | | | | Also, the now scripts can be accessed by arbitrary script base. E.g. /listinfo can be accessed by /mailman/listinfo or /mailman/blah/listinfo etc. etc. This is useful in testing wsgi directly without apache frontend but we may have to limit the length or depth of prefixed script base.
* More work on the WSGI support. So far, I've tested most of the admin.py linksbwarsaw2006-10-151-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and some of the admindb.py links. There may still be breakage in other parts of the interface and I haven't gone back to verify that traditional CGI still works. Changes: - Add wsgiref-0.1.2-py2.4.egg so that we can still do WSGI in Python 2.4, which doesn't come with wsgiref. Of course this means we /also/ have to add setuptools-0.5c3 because eggs require setuptools. - Style cleanups in HTTPRunner.py and wsgi_app.py. Also, use cStringIO instead of StringIO. - All internal links within the listinfo and admin pages are (or at least should be ;) relative now. This should make other things better, such as running Mailman over https or alternative ports. It does kind of mean that web_page_url is obsolete, but I haven't looked at whether we can completely eradicate it. - ValidateEmail(): Use ' ' in s instead of s.count(' ') > 0. - GetPathPieces(): When path is false, return the empty list instead of None, so we can still len() it. - ScriptURL(): Much simpler. To support relative urls as the default, we change the API so that it only takes a 'target' argument (i.e. the script we want to link to). It no longer takes 'absolute' or 'web_page_url', and it constructs its link from GetPathPieces(), the target, and the cgi extension. - GetRequestURI(): code style updates. - Mailman/bin/show_config.py: De-DOS-line-ending-ification. - export.py: A few modifications, although this is likely still not final (I'm still working on the import script). First, for <option> elements, don't put the value in an attribute, put it in the text body of the element. Second, put the list <option> tags in a <configuration> element. Third, put the preferred language on an <option> tag with a 'preferred_language' name attribute value. - SecurityManager: Make sure that MakeCookie() and ZapCookie() use the same 'path' cookie value by refactoring that into a separate method. That method now returns just the SCRIPT_NAME and the full listname. web_page_url doesn't enter into it. - loginit.py: Add a 'debug' logger since it's just too useful to have :) - admin.py: Remove the extra / right before the query string in ?VARHELP urls. That extra / turns out to be problematic with the relative url scheme we're using now. - Auth.py: whitespace normalization and copyright years update. Also, remove a couple of unnecessary imports. Also, make sure that the actionurl is relative. - create.py: Typo. - private.py: mm_cfg -> config object - In MailList.py: GetScriptURL() can be written in terms of Utils.ScriptURL() now.
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Update copyright years.bwarsaw2002-03-161-1/+1
|
* 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).
* 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.
* copyright yearbwarsaw2001-02-281-1/+1
|
* More i18n changes.bwarsaw2001-02-281-5/+8
| | | | | | | | loginpage(): Be sure to set the proper charset on the Content-Type: header (using the charset for the list's preferred language). Fix Utils.maketext(). authenticate(): Mark more strings as translatable.
* loginpage(): Use full-on red for errors.bwarsaw2000-09-151-2/+5
| | | | | | | | | | authenticate(): Because admin.py now tells cgi.FieldStorage to keep_blank_values (necessary to fix other bugs), it isn't enough to test just for presence of the `adminpw' key. The key's value must also be non-empty. Not a great solution, but the best we can do right now. Yes, this means that empty admin keys aren't allowed.
* GetRelativeScriptURL() => GetScriptURL()bwarsaw2000-08-011-1/+1
|
* loginpage: Remove the Cache-control: and Expires: headers. Thesebwarsaw2000-07-221-5/+1
| | | | | caused problems with the back button and didn't really solve an existing problem.
* Factor out some of the common code in admin.py and admindb.py.bwarsaw2000-07-201-0/+83
Specifically, loginpage(): Creates and prints the HTML for the front page of the admin interface. Lots of config arguments ;) authenticate(): Performs the actual authentication and raises a NotLoggedInError if that fails.