[Mailman-Developers] Request for minor feature

Christopher Lindsey lindsey@ncsa.uiuc.edu
Tue, 9 Mar 1999 21:45:36 -0600 (CST)


Tonight I've been struggling with the "convert the URL used in
mailman to something else" scenario.  Specifically, I'm moving
everything to https://secure.domain.com/ from http://www.domain.com/

I couldn't figure out why things weren't working until I finally
stumbled across the web_page_url stuff in the code.  Since I
had commented it all out in the Web pages (I didn't want the
list admins mucking with the URL), I had totally forgotten about
them.  :)

Anyhow, I'm wondering if it would be considered acceptable behavior
for mailman to leave web_page_url blank UNLESS overridden 
by a value.  Looking at the code for GetAbsoluteScriptURL, it
looks like a blank value will default to DEFAULT_URL, which
seems like the right thing to do.

So, when a new list is created can it just leave web_page_url
blank?  As far as I can tell, this should do the trick (against
the current CVS tree):

*** Mailman/MailList.py Tue Mar  9 21:31:20 1999
--- Mailman/MailList.py.bak   Tue Mar  9 21:31:01 1999
***************
*** 224,230 ****
   self.advertised = mm_cfg.DEFAULT_LIST_ADVERTISED
   self.max_num_recipients = mm_cfg.DEFAULT_MAX_NUM_RECIPIENTS
   self.max_message_size = mm_cfg.DEFAULT_MAX_MESSAGE_SIZE
!  self.web_page_url = mm_cfg.DEFAULT_URL
   self.owner = [admin]
   self.reply_goes_to_list = mm_cfg.DEFAULT_REPLY_GOES_TO_LIST
   self.posters = []
--- 224,230 ----
   self.advertised = mm_cfg.DEFAULT_LIST_ADVERTISED
   self.max_num_recipients = mm_cfg.DEFAULT_MAX_NUM_RECIPIENTS
   self.max_message_size = mm_cfg.DEFAULT_MAX_MESSAGE_SIZE
!  self.web_page_url = ''
   self.owner = [admin]
   self.reply_goes_to_list = mm_cfg.DEFAULT_REPLY_GOES_TO_LIST
   self.posters = []

Chris

P.S.  If this is changed, perhaps the same should be done for 
      host_name?

      The other alternative that I see is creating a global
      list changing mechanism; it would change EVERY list's
      value of variable 'n' if the listname matched a certain
      regex.  This would be very cool in the post-1.0 era...
      Comments?