Add missing relation types items in schema global variables
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 27 Jan 2014 14:02:21 +0100
changeset 9660 a78efec4cf04
parent 9659 c45073a96aee
child 9661 c170ec8a4525
Add missing relation types items in schema global variables Some of these global variables are used, in particular, to control schema views (web/views/schema.py). While they are currently not properly documented (see #3360868), their definition are currently incomplete (e.g. one could reasonably expect to find ``cw_schema`` in ``SYSTEM_RTYPES``). Closes #3486114.
schema.py
--- a/schema.py	Thu Mar 13 16:57:22 2014 +0100
+++ b/schema.py	Mon Jan 27 14:02:21 2014 +0100
@@ -68,10 +68,13 @@
                            'allowed_transition', 'destination_state',
                            'from_state', 'to_state', 'condition',
                            'subworkflow', 'subworkflow_state', 'subworkflow_exit',
+                           'by_transition',
                            ))
 SYSTEM_RTYPES = set(('in_group', 'require_group',
                      # cwproperty
                      'for_user',
+                     'cw_schema', 'cw_import_of', 'cw_for_source',
+                     'cw_host_config_of',
                      )) | WORKFLOW_RTYPES
 NO_I18NCONTEXT = META_RTYPES | WORKFLOW_RTYPES