--- 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