[source config] fix synchronization on configuration entity changes stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 16 Jun 2011 19:37:59 +0200
branchstable
changeset 7525 1f6839019e6a
parent 7524 c019c3426049
child 7526 ae31063f3274
[source config] fix synchronization on configuration entity changes
hooks/syncsources.py
--- a/hooks/syncsources.py	Thu Jun 16 17:02:50 2011 +0200
+++ b/hooks/syncsources.py	Thu Jun 16 19:37:59 2011 +0200
@@ -132,7 +132,7 @@
                 if not session.deleted_in_transaction(schemacfg.eid):
                     source.add_schema_config(schemacfg, checkonly=checkonly)
             elif session.deleted_in_transaction(schemacfg.eid):
-                source.delete_schema_config(schemacfg, checkonly=checkonly)
+                source.del_schema_config(schemacfg, checkonly=checkonly)
             else:
                 source.update_schema_config(schemacfg, checkonly=checkonly)
 
@@ -160,4 +160,4 @@
     def __call__(self):
         SourceMappingChangedOp.get_instance(self._cw).add_data(
             (self._cw.entity_from_eid(self.eidfrom),
-             self._cw.entity_from_eid(self.eidto)) )
+             self._cw.entity_from_eid(self.eidto).repo_source) )