entities/wfobjs.py
branch3.5
changeset 2951 d0b77dd27740
parent 2948 d3cd8bd20ee5
child 2954 48507919b6e3
equal deleted inserted replaced
2950:643570a7770f 2951:d0b77dd27740
   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