[Zope-CMF] [HELP] Re : Metadata & portal_catalog

FrŽdŽric Lemaitre flemaitre@fede.generali.fr
Mon, 25 Mar 2002 12:03:19 +0100


Hello,
Thanks for all your responses.
But, i'v still a problem :

- I have done and index "Compagny" on my portal_catalog ==> Ok
- I have made my own 'full_metadata_edit_form' to modify "Compagny" value
==> Ok
- I have made my own 'search_form' in order to query portal_catalog on
"Compagny" field ==> Ok
- I have reindex the portal_catalog ==> Ok

But, is it possible to automaticaly catalog my objects when i add a new
one ?
Cause, when i add an object whith the "Compagny" property, or when i
change the value of "Compagny" property, the Catalog isn't updated. Normal
? In fact, i have to manually reindexe the catalog in order to find my
objects....

For that, i find : portal_catalog.catalog_object(my_obj, uid) method. But,
what is "uid" ?
What value do i must set to "uid" ?


Thanks to help me.
P.S : Excuse for my english.
Fred.



tseaver@zope.com a écrit:
>
>Yes;  you can add new indexes to the catalog, e.g 'Product' and
>'Compagny', and then have your searches use those indexes (you will
>need to populate them by reindexing first, if you have existing content
>which has those attributes).
>
>Tres.
>--