[views/boxes] re-establish the proper selector (closes #2496294) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 24 Sep 2012 16:45:26 +0200
branchstable
changeset 8567 1ac70b1bf00e
parent 8566 76bcfb3c483d
child 8568 56d9eb013feb
[views/boxes] re-establish the proper selector (closes #2496294)
web/views/boxes.py
--- a/web/views/boxes.py	Mon Oct 01 12:40:35 2012 +0200
+++ b/web/views/boxes.py	Mon Sep 24 16:45:26 2012 +0200
@@ -48,7 +48,7 @@
 BoxTemplate = box.BoxTemplate
 BoxHtml = htmlwidgets.BoxHtml
 
-class EditBox(component.CtxComponent): # XXX rename to ActionsBox
+class EditBox(component.CtxComponent):
     """
     box with all actions impacting the entity displayed: edit, copy, delete
     change state, add related entities...
@@ -58,6 +58,7 @@
     title = _('actions')
     order = 2
     contextual = True
+    __select__ = component.CtxComponent.__select__ & non_final_entity()
 
     def init_rendering(self):
         super(EditBox, self).init_rendering()