Commit cb035ae5 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[entity] warn if bad fetch_attrs

--HG--
branch : stable
parent 83c5499e1436
......@@ -251,6 +251,8 @@ class Entity(AppObject, dict):
desttype = rschema.objects(eschema.type)[0]
card = rschema.rproperty(eschema, desttype, 'cardinality')[0]
if card not in '?1':
self.warning('bad relation %s specified in fetch attrs for %s',
attr, self.__class__)
selection.pop()
restrictions.pop()
continue
......
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