[Zope] python script syntax

Paul Winkler pw_lists at slinkp.com
Wed Feb 14 18:51:21 EST 2007


On Wed, Feb 14, 2007 at 11:42:59PM +0000, garry saddington wrote:
> I want to do something like this in a script:
> 
> forms='7L'
> 
> context.forms.manage_addFolder('filey')
> 
> ie. substitute the variable 'forms' for the correct value but I can not
> get the syntax correct, can anyone help?

Look up getattr() in Python's documentation.


-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list