[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 ?

Thierry Florac tflorac at ulthar.net
Tue Jun 28 08:43:59 EDT 2011


> Le 28/06/2011 13:13, Thierry Florac a écrit :
>
>> This last part is handled by zope.intid package, which is used
>> internally
>> by zope.catalog.
>> When a persistent IntId utility has been created and registered, you can
>> do what you need :
>>   - get a unique ID (an integer) for a given object (when persisted !)
>>   - get an object for a given ID
>>
>
> I'm not in zope environment, I use Pyramid + ZODB. Can I use easily this
> tools in my context ?


I think so, zope.intid package only relies on basic Zope and ZODB
dependencies.
zope.* packages which are not in zope.app namespace should be usable quite
easily without a complete Zope machinery...

Regards,
Thierry



More information about the ZODB-Dev mailing list