oops, not self but cls here stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Aug 2009 17:56:41 +0200
branchstable
changeset 2928 edfdb69df6e8
parent 2927 d249dd9000d9
child 2929 51cdfe069e10
oops, not self but cls here
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