cubicweb/hooks/syncsources.py
changeset 11773 054a947b5415
parent 11767 432f87a63057
child 11775 39cf9e55ada8
--- a/cubicweb/hooks/syncsources.py	Thu Sep 29 22:54:26 2016 +0200
+++ b/cubicweb/hooks/syncsources.py	Fri Sep 30 17:38:12 2016 +0200
@@ -92,12 +92,6 @@
 class SourceRenamedOp(hook.LateOperation):
     oldname = newname = None # make pylint happy
 
-    def precommit_event(self):
-        source = self.cnx.repo.sources_by_uri[self.oldname]
-        sql = 'UPDATE entities SET asource=%(newname)s WHERE asource=%(oldname)s'
-        self.cnx.system_sql(sql, {'oldname': self.oldname,
-                                      'newname': self.newname})
-
     def postcommit_event(self):
         repo = self.cnx.repo
         # XXX race condition