[ui tweaks] fix default ui stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 14 Jan 2011 18:30:37 +0100
branchstable
changeset 6827 e730b401f00e
parent 6826 149c31b0e28a
child 6828 b022065b4376
[ui tweaks] fix default ui
schema.py
web/uicfg.py
web/views/schema.py
--- a/schema.py	Fri Jan 14 18:30:32 2011 +0100
+++ b/schema.py	Fri Jan 14 18:30:37 2011 +0100
@@ -83,7 +83,7 @@
                       'SubWorkflowExitPoint'))
 
 INTERNAL_TYPES = set(('CWProperty', 'CWPermission', 'CWCache', 'ExternalUri',
-                      'CWSource', 'CWSourceAlias',
+                      'CWSource', 'CWSourceHostConfig',
 ))
 
 
--- a/web/uicfg.py	Fri Jan 14 18:30:32 2011 +0100
+++ b/web/uicfg.py	Fri Jan 14 18:30:37 2011 +0100
@@ -128,6 +128,7 @@
 indexview_etype_section = InitializableDict(
     EmailAddress='subobject',
     # entity types in the 'system' table by default (managers only)
+    CWSource='system',
     CWUser='system', CWGroup='system',
     CWPermission='system',
     CWCache='system',
--- a/web/views/schema.py	Fri Jan 14 18:30:32 2011 +0100
+++ b/web/views/schema.py	Fri Jan 14 18:30:37 2011 +0100
@@ -45,7 +45,7 @@
 ALWAYS_SKIP_TYPES = BASE_TYPES | SCHEMA_TYPES
 SKIP_TYPES  = (ALWAYS_SKIP_TYPES | META_RTYPES | SYSTEM_RTYPES | WORKFLOW_TYPES
                | INTERNAL_TYPES)
-SKIP_TYPES.update(set(('CWUser', 'CWGroup')))
+SKIP_TYPES.update(set(('CWUser', 'CWGroup', 'EmailAddress', 'Bookmark')))
 
 def skip_types(req):
     if int(req.form.get('skipmeta', True)):