12 Sep
2002
12 Sep
'02
7:43 a.m.
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