# HG changeset patch # User Sylvain Thénault # Date 1250499962 -7200 # Node ID 9d641d98cc86928b04b422bd138787c96987b545 # Parent 83c5499e1436036ede65973a30b6e0d11878d92e [entity] warn if bad fetch_attrs diff -r 83c5499e1436 -r 9d641d98cc86 entity.py --- a/entity.py Mon Aug 17 11:05:28 2009 +0200 +++ b/entity.py Mon Aug 17 11:06:02 2009 +0200 @@ -251,6 +251,8 @@ 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