entity.py
branchstable
changeset 4991 16f0cec3d008
parent 4990 3bf481cf51cb
child 5009 2ac04bc976c3
--- a/entity.py	Wed Mar 24 13:40:53 2010 +0100
+++ b/entity.py	Wed Mar 24 13:51:52 2010 +0100
@@ -889,8 +889,8 @@
             else:
                 restr = 'X %s Y' % attr
             if values is None:
-                execute('DELETE %s WHERE X eid %%(x)s' % restr,
-                        {'x': self.eid}, 'x')
+                self._cw.execute('DELETE %s WHERE X eid %%(x)s' % restr,
+                                 {'x': self.eid}, 'x')
                 continue
             if not isinstance(values, (tuple, list, set, frozenset)):
                 values = (values,)