equal
deleted
inserted
replaced
124 for i, attr in enumerate(attrs): |
124 for i, attr in enumerate(attrs): |
125 var = chr(65+i) |
125 var = chr(65+i) |
126 rqlsel.append(var) |
126 rqlsel.append(var) |
127 rqlrestr.append('X %s %s' % (attr, var)) |
127 rqlrestr.append('X %s %s' % (attr, var)) |
128 rql = 'Any %s WHERE %s' % (','.join(rqlsel), ','.join(rqlrestr)) |
128 rql = 'Any %s WHERE %s' % (','.join(rqlsel), ','.join(rqlrestr)) |
129 rset = session.execute(rql, {'x': self.entity.eid}, 'x') |
129 rset = session.unsafe_execute(rql, {'x': self.entity.eid}, 'x') |
130 for i, attr in enumerate(attrs): |
130 for i, attr in enumerate(attrs): |
131 oldvalue = rset[0][i] |
131 oldvalue = rset[0][i] |
132 newvalue = self.entity[attr] |
132 newvalue = self.entity[attr] |
133 if oldvalue != newvalue: |
133 if oldvalue != newvalue: |
134 thisentitychanges.add((attr, oldvalue, newvalue)) |
134 thisentitychanges.add((attr, oldvalue, newvalue)) |