[Zope] Getting properties in Python Methods

Janko Hauser jhauser@ifm.uni-kiel.de
Fri, 3 Dec 1999 15:15:55 +0100 (CET)


Sorry, my last mail was unclear. You asked for lookup from a
PythonMethod. I have looked into this.

The method needs as parameter self. 

Than this returns the right value. For 'DTML Document' you need to
substitute your meta_type

#
a=self['objectValues'](['DTML Document'])
#a=self['objectValues']()
b=[]
print "A simple test"
for i in a: # strange is I can not use hasattr() here???
  try:
    b.append(i.myid) 
    print b
  except:
    pass

return printed

HTHm

__Janko