[metadata hook] rename an operation for the sake of readability
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Oct 2013 11:34:03 +0200
changeset 9296 8a4175557426
parent 9295 df68a28c5735
child 9299 c5eed908117d
[metadata hook] rename an operation for the sake of readability
hooks/metadata.py
--- a/hooks/metadata.py	Wed Oct 16 15:50:04 2013 +0200
+++ b/hooks/metadata.py	Thu Oct 17 11:34:03 2013 +0200
@@ -149,7 +149,7 @@
 
 # entity source handling #######################################################
 
-class ChangeEntityUpdateCaches(hook.Operation):
+class ChangeEntitySourceUpdateCaches(hook.Operation):
     oldsource = newsource = entity = None # make pylint happy
 
     def postcommit_event(self):
@@ -221,6 +221,6 @@
                      'mtime': datetime.now()}
             self._cw.system_sql(syssource.sqlgen.insert('entities', attrs), attrs)
             # register an operation to update repository/sources caches
-            ChangeEntityUpdateCaches(self._cw, entity=entity,
-                                     oldsource=oldsource.repo_source,
-                                     newsource=syssource)
+            ChangeEntitySourceUpdateCaches(self._cw, entity=entity,
+                                           oldsource=oldsource.repo_source,
+                                           newsource=syssource)