[Zope] get properties in external methods

Elena Schulz elena.schulz@gmx.net
Fri, 22 Nov 2002 14:41:12 +0100


Hi, does anybody know how to access properties in External Methods?

I want to get the properties and meta_type of objectId.
the following script doesn't work. Any hints?

-- many thanks for your replies, Elena

(please answer directly to my adress so I get your reply sooner, thx)

def main(self, objectId):

    objectType = objectId.meta_type
    objectSource = ''
    if objectType != 'folder': objectSource = objectId.read()   <###### does
this work with python scripts, too (for  the
source and parameters)?
    objectTitle = getattr(objectId, 'title')

    for prop in self.propertyIds():
       if prop != 'title':
          propValue = getProperty(prop)
          propType = getPropertyType(prop)

    return