Lukáš Zdych wrote:
> .. or you can setup event subscriber in your configure.zcml something like
> this:
>
> <subscriber
> for="your.package.interfaces.IYourContentType
> Products.CMFCore.interfaces.IActionSucceededEvent"
> handler=".handlers.yourTransitionHandler"
> />
>
> and then in the "handlers.py" module handle the layout setting:
>
> def yourTransitionHandler(self, event):
> """ """
> if event.action == 'publish':
> event.object.setLayout('publish_view')
> elif:
> event.object.setLayout('other_view')
>
I think Lawrence already said that. I had missed the existence of the
setLayout() method. Thanks both of you.
--
derek
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers