schemas/bootstrap.py
branchstable
changeset 5210 1c635a91e403
parent 5179 f08943f22334
child 5421 8167de96c523
--- a/schemas/bootstrap.py	Fri Apr 09 15:01:14 2010 +0000
+++ b/schemas/bootstrap.py	Fri Apr 09 15:01:25 2010 +0000
@@ -311,8 +311,9 @@
 def post_build_callback(schema):
     """set attributes permissions for schema/workflow entities"""
     from cubicweb.schema import SCHEMA_TYPES, WORKFLOW_TYPES, META_RTYPES
+    wftypes = WORKFLOW_TYPES - set(('TrInfo',))
     for eschema in schema.entities():
-        if eschema in SCHEMA_TYPES or eschema in WORKFLOW_TYPES:
+        if eschema in SCHEMA_TYPES or eschema in wftypes:
             for rschema in eschema.subject_relations():
                 if rschema.final and not rschema in META_RTYPES:
                     rdef = eschema.rdef(rschema)