On Mar 10, 2006, at 2:11 PM, Hans Ulrich Niedermann wrote: > Rich Johnson <[EMAIL PROTECTED]> writes: >> [...snip...] >> - HTTP and mail message templates probably require list->sub-domain- >> base-domain->site scoping [N.B. I'm still thinking about my >> position on this issue] > > Let me cite the comment from MM's 2.1.7 Mailman/Utils.py findtext() > function: > > # When looking for a template in a specific language, there are > 4 places > # that are searched, in this order: > # > # 1. the list-specific language directory > # lists/<listname>/<language> > # > # 2. the domain-specific language directory > # templates/<list.host_name>/<language> > # > # 3. the site-wide language directory > # templates/site/<language> > # > # 4. the global default language directory > # templates/<language> > > Looks like your idea is already in place. :)
Hooray! The scoping exists!. (FWIW, I needed some good news today!) Now, if I can use Site.py (or one of its siblings) to bring it all into a domain-rooted fs by mapping: - lists/<listname>/<language> -> /var/vdomains/<list.host_name>/ var/lib/mailman/lists/<llist.local_name>/<language> - templates/<list.host_name> -> /var/vdomains/<list.host_name>/ var/lib/mailman/templates/<language> perhaps via: Site.list_template_dir(). Site.domain_template_dir(), and so on.... ......I'll declare victory and wait for the next release (...well, maybe :-) I hope that's not too much to ask. _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers 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-developers/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
