Zope product with folder as base class
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? Some friendly hints and advice on the best base classes anyone? ...for a product that will act as a container for quite a few prefferably searchable objects. What I care about the most is performance and scalability. Peter
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
participants (2)
-
Dieter Maurer -
Peter Bengtsson