Actually that's more or less what i've done ie.

def main(global_config, **settings):
   config = Configurator(root_factory=main_root_factory, settings=settings)
   ..
def admin(global_config, **settings):
   config = Configurator(root_factory=admin_root_factory,settings=settings)
..

what am missing is: is it normal to the the 1st app's jinja2.directories
crushed by the value of the 2nd app? meaning other app specific key, values
will be replaced by values for the last WSGI app created..


On Tue, Feb 15, 2011 at 8:06 PM, Daniel Holth <[email protected]> wrote:

> Why not just modify your main app's root object:
>
> __getitem__(self, key):
>     if key == 'admin': return AdminRoot()
>
> If you configure the views for both applications, potentially with a
> containment predicate, traversal will find your admin application and its
> entire URL space will be available under /admin. No WSGI separation
> required.
>
> It wouldn't be too surprising if the Jinja2 bindings used a module-level
> global to keep track of the template search path. You should read the source
> code for that one; it's quite short.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to