[web] use Separator "component" instead of deprecated BoxSeparator widget
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 13 Mar 2019 13:37:49 +0100
changeset 12502 e651d5f24cb5
parent 12501 4548234cccf9
child 12503 b01dd0ef43aa
[web] use Separator "component" instead of deprecated BoxSeparator widget
cubicweb/web/box.py
--- a/cubicweb/web/box.py	Wed Mar 13 13:36:38 2019 +0100
+++ b/cubicweb/web/box.py	Wed Mar 13 13:37:49 2019 +0100
@@ -30,9 +30,13 @@
 from cubicweb.predicates import no_cnx, one_line_rset
 from cubicweb.view import View
 from cubicweb.web.htmlwidgets import (BoxLink, BoxWidget, SideBoxWidget,
-                                      RawBoxItem, BoxSeparator)
+                                      RawBoxItem)
 from cubicweb.web.action import UnregisteredAction
-from cubicweb.web.component import AjaxEditRelationCtxComponent, EditRelationMixIn
+from cubicweb.web.component import (
+    AjaxEditRelationCtxComponent,
+    EditRelationMixIn,
+    Separator,
+)
 
 
 def sort_by_category(actions, categories_in_order=None):
@@ -183,7 +187,7 @@
         unrelated = self.unrelated_boxitems(entity)
         box.extend(related)
         if related and unrelated:
-            box.append(BoxSeparator())
+            box.append(Separator())
         box.extend(unrelated)
         box.render(self.w)