AW: [Zope] RE:ZCatalog update question

Marc Fischer marcbpc@gmx.de
Mon, 19 Mar 2001 21:58:05 +0100


Thank you :-) 

That's it ... 
I used the following syntax: 

    <dtml-call "this().reindex_object()">

in every method I create or edit an instance. 

Marc


> -----Ursprungliche Nachricht-----
> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von
> Darin Lee
> Gesendet: Montag, 19. Marz 2001 19:10
> An: zope@zope.org
> Betreff: [Zope] RE:ZCatalog update question
> 
> 
> Gari,
> 
> You must call <dtml-call reindex_object> in any of your methods 
> that operate on data (constructor, edit functions etc.) in order 
> for the object to be automatically updated in the ZCatalog. 
> Simply inheriting ZCatalog as a base class is not enough.
> 
> Also, make sure when you are defining your base classes to 
> include ZCatalogAware FIRST.
> 
> Good luck,
> -Darin
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>