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):
provides a specific may_be_fired method to check if the relation may be
fired by the logged user
"""
id = 'Transition'
id = 'BaseTransition'
fetch_attrs, fetch_order = fetch_config(['name'])
def __init__(self, *args, **kwargs):
raise Exception('should not be instantiated')
def may_be_fired(self, eid):
"""return true if the logged user may fire this transition
......
......@@ -149,12 +149,14 @@ primaryview_display_ctrl = DisplayCtrlRelationTags('primaryview_display_ctrl',
# * 'application'
# * 'system'
# * 'schema'
# * 'hidden'
# * 'subobject' (not displayed by default)
indexview_etype_section = {'EmailAddress': 'subobject',
'CWUser': 'system',
'CWGroup': '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