# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1235583606 -3600 # Node ID ffe5e1631081d6f1dd3050724d31a0300cbce856 # Parent 6053622aae81677872c090cb05d8ddd872cc327b don't need to cache all those properties, only progress_info should be cached diff -r 6053622aae81 -r ffe5e1631081 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']