[Mailman-Developers] Small bug/feature request in 2.1.11 RC2

Jordan Hayes jmhayes at speakeasy.net
Fri Jun 27 22:16:17 CEST 2008


This has been bugging me for a while now, and I finally tracked it down. 
In Mailman/Archiver/HyperArch.py (html_head, line 711) a little 
structure full of variables gets cobbled together for macro expansion in 
the templates; it includes the following variables:

 d = {"listname": html_quote(mlist.real_name, self.lang),
      "archtype": self.type,
      "archive":  self.volNameToDesc(self.archive),
      "listinfo": mlist.GetScriptURL('listinfo', absolute=1),
      "firstdate": quotetime(self.firstdate),
      "lastdate": quotetime(self.lastdate),
      "size": self.size,
      }

This gets sent to the expansion of archidxhead.html ... later, when 
archidxfoot.html is expanded (html_foot, line 678), the following 
variables get cobbled:

  d = {"lastdate": quotetime(self.lastdate),
       "archivedate": quotetime(self.archivedate),
       "listinfo": mlist.GetScriptURL('listinfo', absolute=1),
       "version": self.version,
       }

I have some changes that I've been using since Mailman 2.1.5 (that I've 
used to integrate swish-e) that try to reference %(listname)s in both 
archidx{head,foot}.html and it doesn't expand in the foot.

My belief is that all the variables should be available, but I'll settle 
for head and foot haveing the same ones; I'd even settle for just having 
listname available in foot :-)

/jordan 



More information about the Mailman-Developers mailing list