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
_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to