[wf] BaseTransition is a virtual type 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Aug 2009 09:03:30 +0200
branch3.5
changeset 2951 d0b77dd27740
parent 2950 643570a7770f
child 2954 48507919b6e3
[wf] BaseTransition is a virtual type
entities/wfobjs.py
web/uicfg.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
 
--- 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',
                            }