[Zope] Zope product with folder as base class

Dieter Maurer dieter@handshake.de
Tue, 24 Jul 2001 22:48:43 +0200 (CEST)


Peter Bengtsson writes:
 > When creating a container product in Python one first use ObjectManager.
 > One can also use OFS.Folder, ZCatalog, BTreeFolder.
 > 
 > What's the difference between these and SimpleItem?
"ObjectManager" is a base class for most other containers,
such as "Folder". A "Folder" adds "PropertyManagement",
"FindSupport", ....

If you do not need this additional functionality, go for
"ObjectManager". Otherwise, for the class with sufficient
infrastructure for your task.

Same for "ZCatalog". It is a "Folder" with additional search
capabilities (indexes, meta-data, searching).

"BTreeFolder" is a Folder for large numbers of objects.


"SimpleItem" is the base class for Zope site building objects.
It provides things as "id", "meta_type", "absolute_url",
"restrictedTraverse", ....


Dieter