[Zope] small problem in external methods

Rik Hoekstra hoekstra@fswrul.fsw.leidenuniv.nl
Tue, 25 May 1999 10:32:48 +0200


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Martin Dougiamas
> Sent: dinsdag 25 mei 1999 9:00
> To: zope@zope.org
> Subject: [Zope] small problem in external methods
>
>
> Another small Zope/Python problem I just can't seem to nail,
> no matter what docs I read.
>
> In one of my external methods, I have the name of a subfolder
> in a string variable.  How can I reference properties
> of this subfolder?
>
> ie this seems like it should work, but doesn't:
>
> def example(self):
>
>     foldername = 'fred'
>     subfolders = self.objectItems(['Folder'])
>     return subfolders[foldername].title
>
>
> Ideas?

Um, shouldn't that be self.objectValues ?

Rik