summaryrefslogtreecommitdiff
path: root/cgi/private
diff options
context:
space:
mode:
authorviega1998-05-30 06:06:53 +0000
committerviega1998-05-30 06:06:53 +0000
commit4cf754ca57ef2e904082e105fcd4b78f97ed00a9 (patch)
treea81db0267323e4200988d828cf3d83e206d06ce5 /cgi/private
parentbc98003ed7879c4bf32735750c2a1adf88fbe3d3 (diff)
downloadmailman-4cf754ca57ef2e904082e105fcd4b78f97ed00a9.tar.gz
mailman-4cf754ca57ef2e904082e105fcd4b78f97ed00a9.tar.zst
mailman-4cf754ca57ef2e904082e105fcd4b78f97ed00a9.zip
Integrated Scott's cookie code into the distribution.
Note that it does have one problem... If you have cookies off, you have to log in every time, plus your changes don't take effect! That definitely needs to be fixed.
Diffstat (limited to 'cgi/private')
-rwxr-xr-xcgi/private22
1 files changed, 0 insertions, 22 deletions
diff --git a/cgi/private b/cgi/private
index 72d5c6031..facca81bc 100755
--- a/cgi/private
+++ b/cgi/private
@@ -74,7 +74,6 @@ PAGE = '''
login_attempted = 0
_list = None
-# XXX: This looks broken, should investigate
name_pat = re.compile(r"""
(?: / (?: \d{4} q \d\. )? # Match "/", and, optionally, 1998q1."
( [^/]* ) /? # The SIG name
@@ -88,20 +87,6 @@ name_pat = re.compile(r"""
)
""", re.VERBOSE)
-# " XXX: Emacs turd
-# the following is a potentially better rewrite
-
-## name_pat = re.compile(
-## r'(?: / (?: \d{4} q \d\. )?' # Match "/", and, optionally, 1998q1."
-## r'( [^/]* ) /?' # The SIG name
-## r'/[^/]*$' # The trailing 12345.html portion
-## r') | (?:'
-## r'/ ( [^/.]* )' # Match matrix-sig
-## r'(?:\.html)?' # Optionally match .html
-## r'/?' # Optionally match a trailing slash
-## r'$)' # Must match to end of string
-## , re.VERBOSE)
-
def getListName(path):
match = name_pat.search(path)
if match is None: return
@@ -109,13 +94,6 @@ def getListName(path):
if match.group(2): return match.group(2)
raise ValueError, "Can't identify SIG name"
-#for i in ['/matrix-sig.html', '/1998q1.c++-sig/index.html',
-# '/1998q1.string-sig/foobar.html',
-# '/psa-members.html']:
-# print i, `getListName(i)`
-#sys.exit(0)
-
-## sys.exit(0)
def GetListobj(list_name):
"""Return an unlocked instance of the named maillist, if found."""