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.
_______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com