web/views/boxes.py
branchstable
changeset 8567 1ac70b1bf00e
parent 8455 b5b263f1ad67
child 8694 d901c36bcfce
equal deleted inserted replaced
8566:76bcfb3c483d 8567:1ac70b1bf00e
    46 
    46 
    47 # XXX bw compat, some cubes import this class from here
    47 # XXX bw compat, some cubes import this class from here
    48 BoxTemplate = box.BoxTemplate
    48 BoxTemplate = box.BoxTemplate
    49 BoxHtml = htmlwidgets.BoxHtml
    49 BoxHtml = htmlwidgets.BoxHtml
    50 
    50 
    51 class EditBox(component.CtxComponent): # XXX rename to ActionsBox
    51 class EditBox(component.CtxComponent):
    52     """
    52     """
    53     box with all actions impacting the entity displayed: edit, copy, delete
    53     box with all actions impacting the entity displayed: edit, copy, delete
    54     change state, add related entities...
    54     change state, add related entities...
    55     """
    55     """
    56     __regid__ = 'edit_box'
    56     __regid__ = 'edit_box'
    57 
    57 
    58     title = _('actions')
    58     title = _('actions')
    59     order = 2
    59     order = 2
    60     contextual = True
    60     contextual = True
       
    61     __select__ = component.CtxComponent.__select__ & non_final_entity()
    61 
    62 
    62     def init_rendering(self):
    63     def init_rendering(self):
    63         super(EditBox, self).init_rendering()
    64         super(EditBox, self).init_rendering()
    64         _ = self._cw._
    65         _ = self._cw._
    65         self._menus_in_order = []
    66         self._menus_in_order = []