On Tue, 2002-01-29 at 17:28, Ross Patterson wrote:
> I figured it out and I'm posting this so that the next hapless victim
> might stumble upon this in a google search where I did not.  Long,
> with suggestions that have probably already been made for the
> improvements and clarification of ZClasses.
> 
> [...]
> 
> ZObjectManager gets registered using
> App.ProductContext.registerZClass(), which is supposedly deprecated.
> So I made a nearly exact duplicate of the ZObjectManager mix-in (which
> violates DRY) that sets _zclass_ to a class that subclasses
> ZCatalog.CatalogAwareness.CatalogAware and
> ZClasses.ObjectManager.ObjectManager, and handles the propertysheets
> and manage_options attributes. 

Be careful here. Last I looked, CatalogAwareness is not VirtualHost
safe. You should use CatalogPathAwareness instead.

Cheers, Leo

PS: now if only CatalogPathAwareness was avaliable for subclassing by
ZClasses...

-- 
Ideas don't stay in some minds very long because they don't like
solitary confinement.


_______________________________________________
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 )

Reply via email to