entity.py
branch3.5
changeset 2931 17224e90a1c4
parent 2920 64322aa83a1d
parent 2928 edfdb69df6e8
child 2941 196493bd099c
--- a/entity.py	Thu Aug 20 17:52:22 2009 +0200
+++ b/entity.py	Thu Aug 20 17:57:56 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