[Zope-CMF] Accessing specific browser views from PythonScripts

Charlie Clark charlie at begeistert.org
Thu Jan 31 10:11:14 EST 2008


Am 31.01.2008 um 16:03 schrieb Wichert Akkerman:

> 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")


Thanks!

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226





More information about the Zope-CMF mailing list