[Zope] simple python script question

Henny van der Linde linde@inline-info.nl
Tue, 27 May 2003 01:48:50 +0200


Hi,

I have this in a python script to copy/clone a folder.

obj=container.template_folders.template_1
pag=context.manage_clone(obj,id)
pag.manage_changeProperties(title=title)

This works fine but here template_1 is hardcoded. How do I turn the last
segment into a variable so I can call this script with a specific folder to
clone?

thanks,

Henny van der Linde