Tom Chance wrote: > >Unfortunately some pages don't have templates, they seem hard coded into >the Python code! For example, when you enter your email address to >change subscription options without already being logged in, you get a >page whose contents is included in these files: > >/var/lib/mailman/Mailman/htmlformat.py - header & footer >/var/lib/mailman/Mailman/Cgi/options.py - contents > >Is there a cunning trick I'm missing / are there plans to abstract this >out to a template file? Otherwise I'll try putting the "login-unsub" and >password/login buttons directly onto the main listinfo page along with >the email field to see if I can bypass this interim page altogether.
I think it would be really difficult to eliminate the options login paqe completely without hacking the code. You could work around it when coming from the listinfo page, but what if someone goes to the options page directly without being logged in? We are definitely aware of the shortcomings of the current GUI and are trying to do better for Mailman 2.2. In the mean time, one thing you can do which involves only a minor code change is in the Format() method of the Document class in htmlformat.py, you can insert a stylesheet reference immediately before output.append('%s<BODY %s' % (tab, SPACE.join(quals))) something like output.append('<link rel="stylesheet" type="text/css" ' 'href="path/to/style.css">') output.append('%s<BODY %s' % (tab, SPACE.join(quals))) This will add the stylesheet reference to all pages except those built from templates that have their own <head> section. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp