[views] Hide ordering attribute
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 05 Dec 2017 13:49:24 +0100
changeset 2897 f0c61b4feff1
parent 2896 ce08a5c6e100
child 2898 8bd8b3533dec
[views] Hide ordering attribute it's an implementation specific attribute, we don't want to see it in the UI.
cubicweb_seda/views/__init__.py
--- a/cubicweb_seda/views/__init__.py	Tue Dec 05 13:47:54 2017 +0100
+++ b/cubicweb_seda/views/__init__.py	Tue Dec 05 13:49:24 2017 +0100
@@ -64,6 +64,9 @@
     aff.tag_attribute((etype, 'user_cardinality'), ff.StringField)
     afs.tag_attribute((etype, 'user_annotation'), 'main', 'attributes')
 
+pvs.tag_attribute(('*', 'ordering'), 'hidden')
+afs.tag_attribute(('*', 'ordering'), 'main', 'hidden')
+
 
 def rtags_from_xsd_element(etype, element_name):
     """Return primary view section and display control rtags, generated from information in the XSD