# HG changeset patch # User Sylvain Thénault # Date 1250783801 -7200 # Node ID edfdb69df6e81e58cc9aa679d75dd1e477019dca # Parent d249dd9000d9bda180628e8745245cbc6709518e oops, not self but cls here diff -r d249dd9000d9 -r edfdb69df6e8 entity.py --- a/entity.py Thu Aug 20 17:56:22 2009 +0200 +++ b/entity.py Thu Aug 20 17:56:41 2009 +0200 @@ -251,8 +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__) + cls.warning('bad relation %s specified in fetch attrs for %s', + attr, cls) selection.pop() restrictions.pop() continue