# HG changeset patch # User Sylvain Thénault # Date 1250838210 -7200 # Node ID d0b77dd2774074c1a35dab2d3bc0aeda49d0f101 # Parent 643570a7770ff85f7ac3abb095beccae7448718e [wf] BaseTransition is a virtual type diff -r 643570a7770f -r d0b77dd27740 entities/wfobjs.py --- a/entities/wfobjs.py Fri Aug 21 09:02:35 2009 +0200 +++ b/entities/wfobjs.py Fri Aug 21 09:03:30 2009 +0200 @@ -120,9 +120,12 @@ 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 diff -r 643570a7770f -r d0b77dd27740 web/uicfg.py --- a/web/uicfg.py Fri Aug 21 09:02:35 2009 +0200 +++ b/web/uicfg.py Fri Aug 21 09:03:30 2009 +0200 @@ -149,12 +149,14 @@ # * 'application' # * 'system' # * 'schema' +# * 'hidden' # * 'subobject' (not displayed by default) indexview_etype_section = {'EmailAddress': 'subobject', 'CWUser': 'system', 'CWGroup': 'system', 'CWPermission': 'system', + 'BaseTransition': 'hidden', }