Commit 4e815660 authored by Sebastien Robin's avatar Sebastien Robin

make test_IndexationContextIndependence working with new filter

tales expression (providesIMovement)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30762 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dada27d7
......@@ -51,7 +51,13 @@ except ImportError:
from OFS.ObjectManager import ObjectManager
from random import randint
dummy_callable = lambda: 0
class IndexableDocument(ObjectManager):
# this property is required for dummy providesIMovement
__allow_access_to_unprotected_subobjects__ = 1
def getUid(self):
uid = getattr(self, 'uid', None)
if uid is None:
......@@ -62,6 +68,8 @@ class IndexableDocument(ObjectManager):
# Case for all "is..." magic properties (isMovement, ...)
if name.startswith('is'):
return 0
if name.startswith('provides'):
return dummy_callable
raise AttributeError, name
def getPath(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment