Re: [Zope-dev] creating products

2002-07-14 Thread Dieter Maurer

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


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] creating products

2002-07-13 Thread Chris Withers

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


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )