[Zope-dev] Quickie on ZPatterns ... I promise :)
Steve Alexander
steve@cat-box.net
Thu, 27 Jul 2000 09:15:21 +0100
Bill Anderson wrote:
>
> Let's say I have an object I will store in a rack. Let us say I want this object to be
> cataloged in a ZCatalog. Any caveats I need to know about
> ..such as "Don't do that!" ?
> ?;^)=
Make one of the object's base-classes DataSkin.
Don't make it CatalogAware.
Use triggers to index and unindex the object from a catalog. You'll
probably want to store the catalog in Specialist.
By the way, Phillip Eby has released a new development snapshot:
http://www.zope.org/Members/pje/ZPatterns/ZPatterns-0-4-1snap1.tgz/view
I'll be trying it later today.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net