summaryrefslogtreecommitdiff
path: root/modules/maillist.py
diff options
context:
space:
mode:
authorviega1998-05-30 06:06:53 +0000
committerviega1998-05-30 06:06:53 +0000
commit4cf754ca57ef2e904082e105fcd4b78f97ed00a9 (patch)
treea81db0267323e4200988d828cf3d83e206d06ce5 /modules/maillist.py
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 'modules/maillist.py')
-rw-r--r--modules/maillist.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/modules/maillist.py b/modules/maillist.py
index 44339b4d9..406d1e599 100644
--- a/modules/maillist.py
+++ b/modules/maillist.py
@@ -75,8 +75,13 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
return '%s@%s' % (self._internal_name, self.host_name)
def GetScriptURL(self, script_name):
- return os.path.join(self.web_page_url, '%s/%s' %
- (script_name, self._internal_name))
+ if self.web_page_url:
+ prefix = self.web_page_url
+ else:
+ prefix = mm_cfg.DEFAULT_URL
+ return os.path.join(prefix, '%s/%s' % (script_name,
+ self._internal_name))
+
def GetOptionsURL(self, addr, obscured=0):
options = self.GetScriptURL('options')
if obscured:
@@ -85,9 +90,6 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
treated = addr
return os.path.join(options, treated)
- def GetOptionsURL(self, addr):
- return os.path.join(self.GetScriptURL('options'), addr)
-
def GetUserOption(self, user, option):
if option == mm_cfg.Digests:
return user in self.digest_members
@@ -212,10 +214,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
" what the list is."),
('info', mm_cfg.Text, (7, 50), 0,
- 'An introductory description - a few paragraphs - about the'
- 'list. It will be included, as html, at the top of the'
- 'listinfo page. Carriage returns will end a paragraph - see'
- 'the details for more info.',
+ ' An introductory description - a few paragraphs - about the'
+ ' list. It will be included, as html, at the top of the'
+ ' listinfo page. Carriage returns will end a paragraph - see'
+ ' the details for more info.',
"The text will be treated as html <em>except</em> that newlines"
" newlines will be translated to &lt;br&gt; - so you can use"