On Tue, 2011-02-15 at 17:30 -0800, Daniel Holth wrote:
> No, the jinja2 directories should not clobber each other. It is
> probably a bug in the pyramid_jinja2 bindings.
> 
> I'm suggesting you could have only one Configurator() for both parts
> of your application, avoiding WSGI composition issues:
> 
> def main(config):
>     config.add_view(...)
> 
> def admin(config):
>     config.add_view(...)
> 
> c = Configurator()
> main(c)
> admin(c)

FWIW, it's better to do this:

def main(config):
    config.add_view(...)

def admin(config):
    config.add_view(...)

c = Configurator()
c.include(main)
c.include(admin)

See the "Advanced Configuration" chapter of the Pyramid docs.


- C


-- 
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