[Zope] small problem in external methods

Martin Dougiamas martin@complex.curtin.edu.au
Tue, 25 May 1999 15:00:20 +0800 (WST)


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?

--
### Martin Dougiamas -- Internet Agent     "...The Eighties,
### Centre for Educational Advancement         the Nineties,
### http://cea.curtin.edu/staff/martin         the Naughties."