> def main(global_config, **settings):
>
> portal = getRoot(None)
>
> config = Configurator(root_factory = getRoot, settings = settings)
>
> config.include(RegisterViews1)
> config.commit()
>
> config.include(RegisterViews2)
> config.commit()
>
> return config.make_wsgi_app()
Update:
The view lookup failure results from
info = self.registry.queryUtility(IStaticURLInfo) (in
add_static_view() pyramid.config.py line 2485)
After calling commit() and calling add_static_view() a second time,
queryUtility(IStaticURLInfo) returns the wrong and previously
committed configuration context.
All following configuration info is added to this one and never
committed.
Is it necessary to call self.registry.registerUtility(info,
IStaticURLInfo) and register IStaticURLInfo as Utility? It seems to
work without.
Arndt.
--
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.