[ZODB-Dev] I would like append an indexer with uuid key at root of my ZODB, how can I append an function to commit event to update this uuid catalog ?

Tres Seaver tseaver at palladion.com
Tue Jun 28 08:35:37 EDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/28/2011 05:21 AM, Stéphane Klein wrote:

> In repoze.catalog documentation, I read :
> 
> """
> Note that when you call index_doc, you pass in a docid as the first 
> argument, and the object you want to index as the second argument. When 
> we index the peach object above we index it with the docid 1. Each docid 
> must be unique within a catalog; when you query a repoze.catalog 
> catalog, you’ll get back a sequence of document ids that match the query 
> you supplied, which you’ll presumably need to map back to the content 
> object in order to make sense of the response; you’re responsible for 
> keeping track of which objects map to which document id yourself.
> """
> Url : http://docs.repoze.org/catalog/overview.html#indexing
> 
> "you’re responsible for keeping track of which objects map to which 
> document id yourself." => it is this part I would like to implement.

repoze.catalog ships with a 'DocumentMap' which can generate and track
the docis for you.


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAk4JypkACgkQ+gerLs4ltQ4i4QCXfmxdKLy2nJ3CgdZQeF+Li14F
twCdGKTNvpv8A8/dn7ThUAlgjkURkNw=
=50dg
-----END PGP SIGNATURE-----



More information about the ZODB-Dev mailing list