How do you use multiple layouts with pyramid_layout? The docs show
attaching a layout to a view, but is that all it does? That doesn't
seem to provide much more than inheriting a site template, except that
you get a Python object to go with it. I would expect the power would
come in having multiple layouts for a view and allowing the siteadmin
or user to choose one at runtime. Is anyone doing something like that,
or how are you using the package? It looks like you could make them
dynamic by calling 'request.layout_manager.set_layout(name)' in the
view and storing the current layout name in a session variable.
Is there a way to get the available layout names? Otherwise the view
would have to know externally what the layout choices are.
--
Mike Orr <
slugg...@gmail.com>