web/views/boxes.py
branchstable
changeset 8567 1ac70b1bf00e
parent 8455 b5b263f1ad67
child 8694 d901c36bcfce
--- 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()