[Zope3-dev] zc.catalog.setindex 'all_of' bug?
Nando Quintana
fquintana at codesyntax.com
Sat Mar 17 14:26:40 EDT 2007
Hi guys,
Mikel and me are testing some zope3 features in the camp5 sprint in North
Carolina and have seen an strange behaviour on the setindex.
the 'all_of' query performs an intersection of the results got for each
value in the query.
But whe one of the values takes no results, the 'values_to_documents.get(v)'
returns None and the IFBTree.intersection() of 'anytree' with None returns
'anytree'.
We think that should return an empty tree instead. ¿?
Here you have a patch to include this use case in the tests and another
patch to implement this feature:
http://www.nandoquintana.com/ftp/pub/setindex.txt.patch
http://www.nandoquintana.com/ftp/pub/index.py.patch
Bye,
Nando.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-dev/attachments/20070317/83c7d0cb/attachment.htm
More information about the Zope3-dev
mailing list