[views] UnitBusinessValueEntityView doesn't apply to Shape
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 22 Jun 2017 11:52:03 +0200
changeset 2650 3febc73ffa1b
parent 2649 8e9585bcc97c
child 2651 099c8a8e54b0
[views] UnitBusinessValueEntityView doesn't apply to Shape since it does not have a unit. Closes #17085681
cubicweb_seda/views/dataobject.py
--- a/cubicweb_seda/views/dataobject.py	Tue Jun 13 14:29:10 2017 +0200
+++ b/cubicweb_seda/views/dataobject.py	Thu Jun 22 11:52:03 2017 +0200
@@ -311,7 +311,7 @@
 
 class UnitBusinessValueEntityView(viewlib.BusinessValueEntityView):
 
-    __select__ = is_instance('SEDAWidth', 'SEDAHeight', 'SEDADepth', 'SEDAShape',
+    __select__ = is_instance('SEDAWidth', 'SEDAHeight', 'SEDADepth',
                              'SEDADiameter', 'SEDALength', 'SEDAThickness', 'SEDAWeight')
 
     def entity_call(self, entity):