RE: [Zope] Zcatalog and random numerical key error
-----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
On 3 Feb 2000 11:30:01 -0600, Michel Pelletier wrote:
Error type: ValueError Error value: Uncatalog of absent id 'utips' [...] 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.
I'm already running: Zope version: Zope 2.1.3 (binary release, python 1.5.2, solaris-2.6-sparc) Which didn't fix the problem. However here's a little more info. I had already tried replacing the : raise ValueError, "Uncatalog of absent id %s" % `uid` in line 373 in Catalog.py with a pass/else before I did an "Update Catalog". I got some other error which I didn't keep and don't remember. I just now redid the changes in order to include the subsequent error message, and the thing works now... So I suspect it took both the 'update catalog' and removing the error message to allow it to work. Thanks for convincing me to try it again. :^)
participants (2)
-
kent@tiamat.goathill.org -
Michel Pelletier