[PATCH 02 of 18 seda] [views] Hide ordering attribute

Sylvain Thenault sylvain.thenault at logilab.fr
Mon Dec 11 16:53:34 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1512478164 -3600
#      Tue Dec 05 13:49:24 2017 +0100
# Node ID 441cd81963f1c767ea88d1e1a4409f17820d4100
# Parent  c1276fadfad848052287777f10024de331b17d22
[views] Hide ordering attribute

it's an implementation specific attribute, we don't want to see it in the UI.

diff --git a/cubicweb_seda/views/__init__.py b/cubicweb_seda/views/__init__.py
--- a/cubicweb_seda/views/__init__.py
+++ b/cubicweb_seda/views/__init__.py
@@ -62,10 +62,13 @@ aff.tag_attribute(('*', 'user_cardinalit
 afs.tag_attribute(('*', 'user_annotation'), 'main', 'hidden')
 for etype in FIRST_LEVEL_ETYPES:
     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
     for the given element name.
     """


More information about the saem-devel mailing list