[Zope] simple python script question

Geir BŠkholt Geir BŠkholt
Tue, 27 May 2003 09:18:21 +0200


On  Tue, 27 May 2003 09:03:35 +0200 GMT (..9:03 where i live(GMT+2) )
SÚbastien Georget asked the Zope mailinglist about the following:
  
SG> A 23:42 26/05/2003 -0500, vous avez Úcrit :
>>Did you try
>>
>>template = 'template_1'
>>obj = container.template_folders[template]
...

SG> Is there a function to do the same with a path ?
SG> For example :
SG>    template = 'template_folder/template_1'
SG>    xxxfunction(portal, template)


context.restrictedTraverse('/path/to/object/as/a/string')

:)

--
Geir BŠkholt