[Zope-dev] creating products
Dieter Maurer
dieter@handshake.de
Sun, 14 Jul 2002 23:59:43 +0200
Dirk Datzert writes:
> Which base python-zope class is necessary to store user-structured data
> in the following format:
>
> zope-container
> non-zope structure object 1
> non-zope object-container
> non-zope structure object 2
> ...
>
> Which base class must be the zope-container ?
> SimpleItem, PropertyManager, ObjectManager, or what.
That depends on your requirements.
I probably would use "OFS.Folder" (it contains all of the above and more).
> Which base class must the non-zope structured data ?
> Persistent, PropertyManager, SimpleItem
All Zope site building objects should derive from "SimpleItem"
(maybe indirectly).
Otherwise, it depends on your requirements (you include e.g.
"PropertyManager", when you object should have Web manageable
properties; it is that simple...)
Dieter