[Zope] Zcatalog and random numerical key error
Michel Pelletier
michel@digicool.com
Thu, 3 Feb 2000 12:14:57 -0500
> -----Original Message-----
> From: kent@tiamat.goathill.org [mailto:kent@tiamat.goathill.org]
> Sent: Wednesday, February 02, 2000 5:47 PM
> To: zope@zope.org
> Subject: Re: [Zope] Zcatalog and random numerical key error
>
> File /opt1/pkg/share/zope/lib/python/Products/ZCatalog/Catalog.py,
> line 373, in uncatalogObject
>
> Error type: ValueError
> Error value: Uncatalog of absent id 'utips'
>
> Now I suppose the catalog should be above the base instance, but
> I need for each ZClass instance tree to have its own catalog. As
> long as the catalog doesn't get out of sync, or I don't delete the
> catalog or the catalog item that refers to the base instance, all
> is ok.
>
> How do I get around the problem of 'uncataloging' a catalog id that
> doesn't exist when I want to update a catalog-aware instance?
Raising an error when uncataloging an absent id was not the proper thing
to do, so I removed it in CVS, in fact I believe 2.1.3 has this fixed.
-Michel