[Zope] Re: Creating CatalogAware products.
   
    Maik Jablonski
     
    maik.jablonski@uni-bielefeld.de
       
    Thu, 12 Sep 2002 09:43:53 +0200
    
    
  
Adam Summers wrote:
> Hi all,
> 
> First time poster, long time lurker..
> 
> Ive been trying to create a product which is CatalogAware, with only 
> some success.
> 
> * I have a ZCatalog in the root of the zope installation called 'Catalog'
> 
> * The class for the product inherits/mixes like thus:
> 
> class myProduct(OFS.SimpleItem.Item, Persistent,.... 
> Products.ZCatalog.CatalogAwareness.CatalogAware):
hi,
you should rearrange your class-definition... CatalogAware must sit on 
the top.
you wrote:
 > class myProduct(OFS.SimpleItem.Item, Persistent,....
 > Products.ZCatalog.CatalogAwareness.CatalogAware):
change this to:
class myProduct(Products.ZCatalog.CatalogAwareness.CatalogAware, 
OFS.SimpleItem.Item, Persistent):
cheers, maik