[Zope] Re: simple python script question

Maik Jablonski maik.jablonski@uni-bielefeld.de
Tue, 27 May 2003 09:20:42 +0200


Sébastien Georget schrieb:
> Is there a function to do the same with a path ?
> For example :
>   template = 'template_folder/template_1'
>   xxxfunction(portal, te

Have a look at restrictedTraverse:

templatePath = 'template_folder/template_1'
templateObject = context.restrictedTraverse(templatePath)

Cheers, Maik