web/views/editviews.py
changeset 3185 bd0126d17e83
parent 3023 7864fee8b4ec
parent 3165 0a50ebe53db7
child 3293 69c0ba095536
equal deleted inserted replaced
3163:edfe43ceaa35 3185:bd0126d17e83
   196 
   196 
   197 class EditableFinalView(FinalView):
   197 class EditableFinalView(FinalView):
   198     """same as FinalView but enables inplace-edition when possible"""
   198     """same as FinalView but enables inplace-edition when possible"""
   199     id = 'editable-final'
   199     id = 'editable-final'
   200 
   200 
   201     def cell_call(self, row, col, props=None, displaytime=False):
   201     def cell_call(self, row, col, props=None):
   202         entity, rtype = self.rset.related_entity(row, col)
   202         entity, rtype = self.rset.related_entity(row, col)
   203         if entity is not None:
   203         if entity is not None:
   204             self.w(entity.view('reledit', rtype=rtype))
   204             self.w(entity.view('reledit', rtype=rtype))
   205         else:
   205         else:
   206             super(EditableFinalView, self).cell_call(row, col, props, displaytime)
   206             super(EditableFinalView, self).cell_call(row, col, props)