entities/wfobjs.py
branch3.5
changeset 2954 48507919b6e3
parent 2951 d0b77dd27740
child 2975 fed52d317ba7
--- a/entities/wfobjs.py	Fri Aug 21 09:03:30 2009 +0200
+++ b/entities/wfobjs.py	Fri Aug 21 14:50:20 2009 +0200
@@ -124,7 +124,9 @@
     fetch_attrs, fetch_order = fetch_config(['name'])
 
     def __init__(self, *args, **kwargs):
-        raise Exception('should not be instantiated')
+        if self.id == 'BaseTransition':
+            raise Exception('should not be instantiated')
+        super(BaseTransition, self).__init__(*args, **kwargs)
 
     def may_be_fired(self, eid):
         """return true if the logged user may fire this transition