[Zope-CMF] Accessing specific browser views from PythonScripts

Wichert Akkerman wichert at wiggy.net
Thu Jan 31 10:03:59 EST 2008


Previously Charlie Clark wrote:
> Dear all,
> 
> I've got a site with mixture of classical objects with skins and a few  
> using browser views. I need to generate a special compound view of all  
> the objects in a folder and for convenience will be doing this in a  
> PythonScript. While I can access @@views from templates, I can't  
> figure out how to do this from a PythonScript. Is it all possible?  

view=context.restrictedTraverse("@@view")

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Zope-CMF mailing list