access to repo through session
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 11:22:08 +0200
changeset 3411 c867a096e11c
parent 3410 47832374cf14
child 3412 368c68ffb99e
access to repo through session
hooks/syncsession.py
--- a/hooks/syncsession.py	Wed Sep 23 11:20:29 2009 +0200
+++ b/hooks/syncsession.py	Wed Sep 23 11:22:08 2009 +0200
@@ -87,7 +87,7 @@
     def commit_event(self):
         """the observed connections pool has been commited"""
         try:
-            self.repo.close(self.cnxid)
+            self.session.repo.close(self.cnxid)
         except BadConnectionId:
             pass # already closed
 
@@ -132,7 +132,7 @@
         """the observed connections pool has been commited"""
         cwprop = self.cwprop
         if not cwprop.for_user:
-            self.repo.vreg['propertyvalues'][cwprop.pkey] = cwprop.value
+            self.session.vreg['propertyvalues'][cwprop.pkey] = cwprop.value
         # if for_user is set, update is handled by a ChangeCWPropertyOp operation