equal
deleted
inserted
replaced
118 """customized class for abstract transition |
118 """customized class for abstract transition |
119 |
119 |
120 provides a specific may_be_fired method to check if the relation may be |
120 provides a specific may_be_fired method to check if the relation may be |
121 fired by the logged user |
121 fired by the logged user |
122 """ |
122 """ |
123 id = 'Transition' |
123 id = 'BaseTransition' |
124 fetch_attrs, fetch_order = fetch_config(['name']) |
124 fetch_attrs, fetch_order = fetch_config(['name']) |
|
125 |
|
126 def __init__(self, *args, **kwargs): |
|
127 raise Exception('should not be instantiated') |
125 |
128 |
126 def may_be_fired(self, eid): |
129 def may_be_fired(self, eid): |
127 """return true if the logged user may fire this transition |
130 """return true if the logged user may fire this transition |
128 |
131 |
129 `eid` is the eid of the object on which we may fire the transition |
132 `eid` is the eid of the object on which we may fire the transition |