web/views/treeview.py
changeset 5871 b21eb3e90a10
parent 5762 730d458ec1bf
child 5912 ff916bf2eba0
equal deleted inserted replaced
5870:d3ec7c4bb373 5871:b21eb3e90a10
    89         done, entity = _done_init(done, self, row, col)
    89         done, entity = _done_init(done, self, row, col)
    90         if done is None:
    90         if done is None:
    91             # entity is actually an error message
    91             # entity is actually an error message
    92             self.w(u'<span class="badcontent">%s</span>' % entity)
    92             self.w(u'<span class="badcontent">%s</span>' % entity)
    93             return
    93             return
    94         parent = entity.cw_adapt_to('ITree').parent_entity()
    94         parent = entity.cw_adapt_to('ITree').parent()
    95         if parent:
    95         if parent:
    96             parent.view(self.__regid__, w=self.w, done=done)
    96             parent.view(self.__regid__, w=self.w, done=done)
    97             self.w(self.separator)
    97             self.w(self.separator)
    98         entity.view(vid or self.item_vid, w=self.w)
    98         entity.view(vid or self.item_vid, w=self.w)
    99 
    99