server/repository.py
branchstable
changeset 7895 0a967180794b
parent 7887 42a0b7398d31
child 7898 405017c79b45
--- a/server/repository.py	Thu Sep 29 14:46:41 2011 +0200
+++ b/server/repository.py	Thu Sep 29 15:28:41 2011 +0200
@@ -1177,8 +1177,7 @@
         # delete remaining relations: if user can delete the entity, he can
         # delete all its relations without security checking
         with security_enabled(session, read=False, write=False):
-            eids = [_e.eid for _e in entities]
-            in_eids = ','.join((str(eid) for eid in eids))
+            in_eids = ','.join([str(_e.eid) for _e in entities])
             for rschema, _, role in entities[0].e_schema.relation_definitions():
                 rtype = rschema.type
                 if rtype in schema.VIRTUAL_RTYPES or rtype in pendingrtypes: