skip SYSTEM_RTYPES by default in schema view 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Sep 2009 13:36:41 +0200
branch3.5
changeset 3288 266d31e7afa0
parent 3287 19c1011736a6
child 3292 70c0dd1c3b7d
skip SYSTEM_RTYPES by default in schema view
web/views/schema.py
--- a/web/views/schema.py	Thu Sep 17 13:21:13 2009 +0200
+++ b/web/views/schema.py	Thu Sep 17 13:36:41 2009 +0200
@@ -14,7 +14,7 @@
 
 from cubicweb.selectors import (implements, yes, match_user_groups,
                                 has_related_entities)
-from cubicweb.schema import META_RTYPES, SCHEMA_TYPES
+from cubicweb.schema import META_RTYPES, SCHEMA_TYPES, SYSTEM_RTYPES
 from cubicweb.schemaviewer import SchemaViewer
 from cubicweb.view import EntityView, StartupView
 from cubicweb.common import tags, uilib
@@ -23,7 +23,7 @@
 from cubicweb.web.views import primary, baseviews, tabs, management
 
 ALWAYS_SKIP_TYPES = BASE_TYPES | SCHEMA_TYPES
-SKIP_TYPES = ALWAYS_SKIP_TYPES | META_RTYPES
+SKIP_TYPES = ALWAYS_SKIP_TYPES | META_RTYPES | SYSTEM_RTYPES
 SKIP_TYPES.update(set(('Transition', 'State', 'TrInfo',
                        'CWUser', 'CWGroup',
                        'CWCache', 'CWProperty', 'CWPermission',