Closed vangheem closed 8 years ago
Thanks for the patch! A couple of issues:
@tseaver I'm not sure this has anything to do with p2k vs p3k. In the latest BTree, which ZODB depends on, you can not have None values as keys.
Ah, right -- I forgot that bit.
As it stands, this PR means that we won't be able to search for documents having None
as their value, although they will be present in the reverse index.
I don't really know enough about how zope.index works so this is probably short sighted. I had thought the rev_index was where the search was done on.
Do we catch the TypeError and say that None values aren't allowed with ZODB 4?
I also don't know what happens for upgraded ZODBs where there are existing None values.
Thanks again!
This fixes zope.index in ZODB 4