[IndexedCatalog] exceptions in catalog.insert()
Christian Reis
kiko at async.com.br
Mon Mar 3 15:29:58 BRST 2003
On Wed, Feb 19, 2003 at 02:32:35PM +0100, Michal Bencur wrote:
> I use most current version from CVS, and I get exceptions
> when I add new objects into catalog. I put try:except into
> Indexes.py, and now it works. I don't know if it's clean
> solution, maybe I break something somewhere, but for now it
> works.
I think this is the problem J and Nic and I have been discussing over
the past weeks, which was caused by futzing with BTrees incorrectly.
> I added exc. handling into Indexes.IndexCollection.unindex_attribute(self, name, value, data):
>
> try:
> self._indexes[name].unindex_item(value, data)
> except KeyError:
> pass
> except ValueError:
> pass
Can you try the patch J just posted to the list?
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
More information about the IndexedCatalog
mailing list