26 Aug
2002
26 Aug
'02
8:18 p.m.
Kevin Carlson wrote:
Thanks, Andreas. This works great for properties that are defined in Zope. Is there a way to do this same thing for properties that are defined in a python product? For example, calling propertyItems on a CMFEvent displays the title of the event, but does not display the start_date and end_date properties that are defined in the python source for the CMF type.
Perhaps you can use the dir() function to get a list of attributes. Something like: attributes = [attr for attr in dir(obj.aq_base) if not callable(getattr(obj.aq_base, attr))] regards Max M "klaatu verata niktu"