# HG changeset patch # User Sylvain Thénault # Date 1269435112 -3600 # Node ID 16f0cec3d0081744ff3045927b4f60bd082071db # Parent 3bf481cf51cba6f494d9e21dd2ac4cd6f827b07e [entity] fix dumb name error on .set_relations(rel=None) diff -r 3bf481cf51cb -r 16f0cec3d008 entity.py --- 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,)