common/mixins.py
changeset 2748 d2fcf19bfb34
parent 2728 d4689ba782a4
child 2778 3f6dfc312760
child 2920 64322aa83a1d
child 2996 866a2c135c33
equal deleted inserted replaced
2746:cfcc7f6121d6 2748:d2fcf19bfb34
   363         entity.view(vid or self.item_vid, w=self.w)
   363         entity.view(vid or self.item_vid, w=self.w)
   364 
   364 
   365 
   365 
   366 class ProgressMixIn(object):
   366 class ProgressMixIn(object):
   367     """provide default implementations for IProgress interface methods"""
   367     """provide default implementations for IProgress interface methods"""
       
   368     # This is an adapter isn't it ?
   368 
   369 
   369     @property
   370     @property
   370     def cost(self):
   371     def cost(self):
   371         return self.progress_info()['estimated']
   372         return self.progress_info()['estimated']
   372 
   373