[Mailman-Developers] Virtual Domains Redux (w proposal)

Rich Johnson rjohnson at dogstar-interactive.com
Fri Mar 10 22:37:37 CET 2006


On Mar 10, 2006, at 2:11 PM, Hans Ulrich Niedermann wrote:

> Rich Johnson <rjohnson at dogstar-interactive.com> 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.


More information about the Mailman-Developers mailing list