[Zope] passing script parameters - newbie question
Paul Winkler
pw_lists at slinkp.com
Sun Dec 28 04:43:04 EST 2003
On Sun, Dec 28, 2003 at 02:11:33AM -0700, Paul Dumais wrote:
> I have a Python script that takes a parameter 'fileid' which is a file
> id. I need to call the getProperty() method via something like this:
>
> container.fileid.getProperty('prop')
>
> This does not work (I get an Attribute Error).
yes, you probably want this:
getattr(container, fileid).getProperty('prop')
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's CUSTODIAN TERRIBLE TONGUE!
(random hero from isometric.spaceninja.com)
More information about the Zope
mailing list