changeset 3777 | 3ef8cdb5fb1c |
parent 3720 | 5376aaadd16b |
parent 3746 | 74192424b2c8 |
child 3890 | d7a270f50f54 |
--- a/entity.py Mon Oct 19 20:22:01 2009 +0200 +++ b/entity.py Wed Oct 21 17:32:20 2009 +0200 @@ -782,6 +782,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')