Hi, I want to write a simple product which saves some data. 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. Which base class must the non-zope structured data ? Persistent, PropertyManager, SimpleItem Regards, Dirk
Dirk Datzert wrote:
Which base class must be the zope-container ? SimpleItem, PropertyManager, ObjectManager, or what.
ObjectManager would be a good starting place.
Which base class must the non-zope structured data ? Persistent, PropertyManager, SimpleItem
SimpleItem would be good here... cheers, Chris
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
participants (3)
-
Chris Withers -
Dieter Maurer -
Dirk Datzert