branch | stable |
changeset 3746 | 74192424b2c8 |
parent 3689 | deb13e88e037 |
child 3777 | 3ef8cdb5fb1c |
child 3826 | 0c0c051863cb |
--- a/entity.py Tue Oct 20 12:48:43 2009 +0200 +++ b/entity.py Tue Oct 20 13:00:31 2009 +0200 @@ -886,6 +886,8 @@ restr = 'Y %s X' % attr[len('reverse_'):] else: restr = 'X %s Y' % attr + if not isinstance(values, (tuple, list, set, frozenset)): + values = (values,) execute('SET %s WHERE X eid %%(x)s, Y eid IN (%s)' % ( restr, ','.join(str(r.eid) for r in values)), {'x': self.eid}, 'x')