server/sources/remoterql.py
changeset 8900 010a59e12d89
parent 8707 28cbd267e96b
--- a/server/sources/remoterql.py	Tue Apr 23 15:16:36 2013 +0200
+++ b/server/sources/remoterql.py	Tue Apr 23 15:33:50 2013 +0200
@@ -415,7 +415,7 @@
             self._query_cache.clear()
             return
         cu = session.cnxset[self.uri]
-        cu.execute('DELETE %s X WHERE X eid %%(x)s' % entity.__regid__,
+        cu.execute('DELETE %s X WHERE X eid %%(x)s' % entity.cw_etype,
                    {'x': self.repo.eid2extid(self, entity.eid, session)})
         self._query_cache.clear()