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 <[email protected]> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAH9f%3DuoaqNtfsUcHQrYPogw4%2Bz9rPmi%2BODTHb7rLUJfNbgmEoA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
