Re: [Zope] ZCatalog and ExtFile
Andrew Williams writes:
... However, ExtFile does not update ZCatalog whenever I add another ExtFile object to the ZODB. I've checked the ExtFile code, and indeed, ExtFile inherits from Products.ZCatalog.CatalogAwareness, CatalogAware. You are aware, that "CatalogAware" requires the catalog to have a specific id and be available through acquisition?
Dieter
I'm sorry Dieter, I'm not following you... could you explain a little more? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Andrew Williams writes:
You are aware, that "CatalogAware" requires the catalog to have a specific id and be available through acquisition? I'm sorry Dieter, I'm not following you... could you explain a little more? A "CatalogAware" instance must locate the catolog it should update.
It assume that the catalog has a fixed id. The default is "Catalog" but can be changed when "CatalogAware" is subclassed. The catalog is obtained via the id through acquisition. This usually implies, it must be a direct child of an ancestor of the "CatalogAware" object. Dieter
participants (2)
-
Andrew Williams -
Dieter Maurer