From: Clemens Klein-R. <cro...@we...> - 2005-08-05 22:55:30
|
Hi Nico, > from a Python Script I would like to return a silva document > which contains a Code Source. From Your explanation I guess You want to render the complete html page? > So I tried to return the silvadoc by calling the view() method but unfortunately > the navigation and layout are not part of it. I just tried: > return silvadoc.view() > > Now, my variables are still in the request, but the layout is missing. Yes, that is the behavoiur of the view method, as intended. > Is there a method available similiar to "view()" which returns the silvadoc including > the layout and navigation? > If Zope want to serve an object but figures out that it cannot call it directily, because it is not callable, Zope tries to get the "index_html" attribute and call that one. You can do the same. "return silvadoc.index_html()" should give You what You want. Cheers, Clemens |