web/views/schema.py
changeset 4434 101344a6ff9b
parent 4252 6c4f109c2b03
child 4451 65f4665233e6
--- a/web/views/schema.py	Wed Feb 03 09:21:47 2010 +0100
+++ b/web/views/schema.py	Tue Feb 02 18:24:45 2010 +0100
@@ -14,7 +14,8 @@
 
 from cubicweb.selectors import (implements, yes, match_user_groups,
                                 has_related_entities)
-from cubicweb.schema import META_RTYPES, SCHEMA_TYPES, SYSTEM_RTYPES
+from cubicweb.schema import (META_RTYPES, SCHEMA_TYPES, SYSTEM_RTYPES,
+                             WORKFLOW_TYPES, INTERNAL_TYPES)
 from cubicweb.schemaviewer import SchemaViewer
 from cubicweb.view import EntityView, StartupView
 from cubicweb import tags, uilib
@@ -23,13 +24,9 @@
 from cubicweb.web.views import primary, baseviews, tabs, management
 
 ALWAYS_SKIP_TYPES = BASE_TYPES | SCHEMA_TYPES
-SKIP_TYPES = ALWAYS_SKIP_TYPES | META_RTYPES | SYSTEM_RTYPES
-SKIP_TYPES.update(set(('Transition', 'State', 'TrInfo', 'Workflow',
-                       'WorkflowTransition', 'BaseTransition',
-                       'SubWorkflowExitPoint',
-                       'CWUser', 'CWGroup',
-                       'CWCache', 'CWProperty', 'CWPermission',
-                       'ExternalUri')))
+SKIP_TYPES  = (ALWAYS_SKIP_TYPES | META_RTYPES | SYSTEM_RTYPES | WORKFLOW_TYPES
+               INTERNAL_TYPES)
+SKIP_TYPES.update(set(('CWUser', 'CWGroup')))
 
 def skip_types(req):
     if int(req.form.get('skipmeta', True)):