use __regid__
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 19:16:51 +0200
changeset 3446 fc5055a09550
parent 3445 32492e9e734b
child 3447 0a0f8df4a2f7
use __regid__
server/repository.py
--- a/server/repository.py	Wed Sep 23 19:16:44 2009 +0200
+++ b/server/repository.py	Wed Sep 23 19:16:51 2009 +0200
@@ -854,7 +854,7 @@
             else:
                 # minimal meta-data
                 session.execute('SET X is E WHERE X eid %(x)s, E name %(name)s',
-                                {'x': entity.eid, 'name': entity.id}, 'x')
+                                {'x': entity.eid, 'name': entity.__regid__}, 'x')
             session.commit(reset_pool)
             return eid
         except: