don't need to cache all those properties, only progress_info should be cached
authorsylvain.thenault@logilab.fr
Wed, 25 Feb 2009 18:40:06 +0100
changeset 959 ffe5e1631081
parent 958 6053622aae81
child 960 040f9a2b6a36
don't need to cache all those properties, only progress_info should be cached
common/mixins.py
--- a/common/mixins.py	Wed Feb 25 18:39:21 2009 +0100
+++ b/common/mixins.py	Wed Feb 25 18:40:06 2009 +0100
@@ -369,22 +369,18 @@
     """provide default implementations for IProgress interface methods"""
 
     @property
-    @cached
     def cost(self):
         return self.progress_info()['estimated']
 
     @property
-    @cached
     def revised_cost(self):
         return self.progress_info().get('estimatedcorrected', self.cost)
 
     @property
-    @cached
     def done(self):
         return self.progress_info()['done']
 
     @property
-    @cached
     def todo(self):
         return self.progress_info()['todo']