[Zope] Iterating through object properties

Kevin Carlson khcarlso@bellsouth.net
Mon, 26 Aug 2002 12:44:42 -0400


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.

Ideas?

Kevin

-----Original Message-----
From: Andreas Jung [mailto:lists@andreas-jung.com]
Sent: Monday, August 26, 2002 12:28 PM
To: Kevin Carlson; zope@zope.org
Subject: Re: [Zope] Iterating through object properties


See "module PropertyManager" of
http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx

-aj

----- Original Message -----
From: "Kevin Carlson" <khcarlso@bellsouth.net>
To: <zope@zope.org>
Sent: Monday, August 26, 2002 18:27
Subject: [Zope] Iterating through object properties


> Is there a way either in DTML or a python script to iterate through all of
> the properties of an object without knowing its specific type?  For
example,
> if I have CMF Types of Document, File, Event, etc. I want to build a list
of
> all of their properties without knowledge of the particular type.  Ideas?
>
> Thanks,
>
> Kevin
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>