web/views/schema.py
branchstable
changeset 6827 e730b401f00e
parent 6582 8eb7883b4223
child 6854 ffc982faa264
equal deleted inserted replaced
6826:149c31b0e28a 6827:e730b401f00e
    43 from cubicweb.web.views import primary, baseviews, tabs, tableview, ibreadcrumbs
    43 from cubicweb.web.views import primary, baseviews, tabs, tableview, ibreadcrumbs
    44 
    44 
    45 ALWAYS_SKIP_TYPES = BASE_TYPES | SCHEMA_TYPES
    45 ALWAYS_SKIP_TYPES = BASE_TYPES | SCHEMA_TYPES
    46 SKIP_TYPES  = (ALWAYS_SKIP_TYPES | META_RTYPES | SYSTEM_RTYPES | WORKFLOW_TYPES
    46 SKIP_TYPES  = (ALWAYS_SKIP_TYPES | META_RTYPES | SYSTEM_RTYPES | WORKFLOW_TYPES
    47                | INTERNAL_TYPES)
    47                | INTERNAL_TYPES)
    48 SKIP_TYPES.update(set(('CWUser', 'CWGroup')))
    48 SKIP_TYPES.update(set(('CWUser', 'CWGroup', 'EmailAddress', 'Bookmark')))
    49 
    49 
    50 def skip_types(req):
    50 def skip_types(req):
    51     if int(req.form.get('skipmeta', True)):
    51     if int(req.form.get('skipmeta', True)):
    52         return SKIP_TYPES
    52         return SKIP_TYPES
    53     return ALWAYS_SKIP_TYPES
    53     return ALWAYS_SKIP_TYPES