Commit c5fa0dd7 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[wf] BaseTransition is a virtual type

--HG--
branch : 3.5
parent 643570a7770f
...@@ -120,9 +120,12 @@ class BaseTransition(AnyEntity): ...@@ -120,9 +120,12 @@ class BaseTransition(AnyEntity):
provides a specific may_be_fired method to check if the relation may be provides a specific may_be_fired method to check if the relation may be
fired by the logged user fired by the logged user
""" """
id = 'Transition' id = 'BaseTransition'
fetch_attrs, fetch_order = fetch_config(['name']) fetch_attrs, fetch_order = fetch_config(['name'])
def __init__(self, *args, **kwargs):
raise Exception('should not be instantiated')
def may_be_fired(self, eid): def may_be_fired(self, eid):
"""return true if the logged user may fire this transition """return true if the logged user may fire this transition
......
...@@ -149,12 +149,14 @@ primaryview_display_ctrl = DisplayCtrlRelationTags('primaryview_display_ctrl', ...@@ -149,12 +149,14 @@ primaryview_display_ctrl = DisplayCtrlRelationTags('primaryview_display_ctrl',
# * 'application' # * 'application'
# * 'system' # * 'system'
# * 'schema' # * 'schema'
# * 'hidden'
# * 'subobject' (not displayed by default) # * 'subobject' (not displayed by default)
indexview_etype_section = {'EmailAddress': 'subobject', indexview_etype_section = {'EmailAddress': 'subobject',
'CWUser': 'system', 'CWUser': 'system',
'CWGroup': 'system', 'CWGroup': 'system',
'CWPermission': 'system', 'CWPermission': 'system',
'BaseTransition': 'hidden',
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment