Conceptually, __getitem__ must raise a KeyError when not found.
This is required for portal_catalog.getObject to work properly. Without this patch, context.portal_catalog.getObject(uid) returns 'context' if 'uid' is not in the catalog. ( This is the reason for functional tests failures on listbox validation ) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16809 20353a03-c40f-0410-a6d1-a30d3c3de9de
Showing
Please register or sign in to comment