Changeset 6316 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 10 Jun 2011, 00:26:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r6307 r6316 2 2 """ 3 3 import grok 4 from hurry.workflow.workflow import Transition, Workflow, WorkflowVersions 5 from hurry.workflow.workflow import WorkflowInfo, WorkflowState, NullCondition 6 from hurry.workflow.interfaces import MANUAL, AUTOMATIC, SYSTEM 7 from hurry.workflow.interfaces import IWorkflow, IWorkflowState, IWorkflowInfo 8 from hurry.workflow.interfaces import IWorkflowVersions 4 from hurry.workflow.workflow import ( 5 Transition, Workflow, WorkflowVersions, WorkflowInfo, WorkflowState, 6 NullCondition) 7 from hurry.workflow.interfaces import ( 8 IWorkflow, IWorkflowState, IWorkflowInfo, IWorkflowVersions, 9 InvalidTransitionError) 9 10 from waeup.sirp.applicants.interfaces import IApplicantBaseData 11 10 12 11 13 INITIALIZED = 'initialized' … … 84 86 destination = STARTED) 85 87 86 return [init_transition, start_transition, submit_transition, admit_transition, 87 create_transition, refuse1_transition, refuse2_transition, reset1_transition, 88 reset2_transition, reset3_transition, reset4_transition] 88 return [init_transition, start_transition, submit_transition, 89 admit_transition, create_transition, refuse1_transition, 90 refuse2_transition, reset1_transition, reset2_transition, 91 reset3_transition, reset4_transition] 89 92 90 93 … … 98 101 99 102 def getTransition(self, source, transition_id): 100 from hurry.workflow.interfaces import\101 InvalidTransitionError, ConditionFailedError102 103 103 transition = self._id_transitions[transition_id] 104 104 if transition.source != source: … … 147 147 grok.context(IApplicantBaseData) 148 148 grok.provides(IWorkflowState) 149 149 150 150 class ApplicationInfo(grok.Adapter, WorkflowInfo): 151 151 """Adapter to adapt Applicant objects to workflow info objects.
Note: See TracChangeset for help on using the changeset viewer.