use .session.repo instead of repo on operation classes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 09:35:11 +0200
changeset 3381 9ddc8937e16d
parent 3380 3be33dc83d8b
child 3382 435286b8fe10
use .session.repo instead of repo on operation classes
server/repository.py
--- a/server/repository.py	Wed Sep 23 09:34:46 2009 +0200
+++ b/server/repository.py	Wed Sep 23 09:35:11 2009 +0200
@@ -54,7 +54,8 @@
         remove inserted eid from repository type/source cache
         """
         try:
-            self.repo.clear_caches(self.session.transaction_data['pendingeids'])
+            self.session.repo.clear_caches(
+                self.session.transaction_data['pendingeids'])
         except KeyError:
             pass
 
@@ -63,7 +64,8 @@
         remove inserted eid from repository type/source cache
         """
         try:
-            self.repo.clear_caches(self.session.transaction_data['neweids'])
+            self.session.repo.clear_caches(
+                self.session.transaction_data['neweids'])
         except KeyError:
             pass