[ZODB-Dev] Encoded strings as keys for OOBTree in 2.7.3

Chris Withers chris at simplistix.co.uk
Wed Apr 13 12:45:00 EDT 2005


Hi All,

Interesting problem with an OOBTree, in this case the _index attribute 
of a FieldIndex in a Zope 2.7.3 instance.

doing self._index.get('tést') (you can get the é by doing Alt Gr - e ;-) 
resulted in a UnicodeDecodeError.

The bizarre thing is that:
t = OOBTree()
t.get('tést')
returns None as opposed to raising the exception, which is what I'd expect.

Looking at the keys of the defective btree showed keys that were a 
mixture of strings and unicodes.

Any idea as to what could be causing this?

cheers,

Chris


-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the ZODB-Dev mailing list