- Timestamp:
- 8 Mar 2012, 19:00:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/workflow.py
r7690 r7811 5 5 from hurry.workflow.workflow import Transition, WorkflowState, NullCondition 6 6 from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent 7 from waeup. sirp.interfaces import (8 IObjectHistory, I SIRPWorkflowInfo, ISIRPUtils,7 from waeup.kofa.interfaces import ( 8 IObjectHistory, IKOFAWorkflowInfo, IKOFAUtils, 9 9 CREATED, ADMITTED, CLEARANCE, REQUESTED, CLEARED, PAID, RETURNING, 10 10 REGISTERED, VALIDATED) 11 from waeup. sirp.interfaces import MessageFactory as _12 from waeup. sirp.workflow import SIRPWorkflow, SIRPWorkflowInfo13 from waeup. sirp.students.interfaces import IStudent, IStudentsUtils11 from waeup.kofa.interfaces import MessageFactory as _ 12 from waeup.kofa.workflow import KOFAWorkflow, KOFAWorkflowInfo 13 from waeup.kofa.students.interfaces import IStudent, IStudentsUtils 14 14 15 15 … … 156 156 UNLOCK_CLEARANCE_TRANS = ('reset3', 'reset4', 'start_clearance') 157 157 158 registration_workflow = SIRPWorkflow(REGISTRATION_TRANSITIONS)158 registration_workflow = KOFAWorkflow(REGISTRATION_TRANSITIONS) 159 159 160 160 class RegistrationWorkflowState(WorkflowState, grok.Adapter): … … 167 167 state_id = 'wf.registration.id' 168 168 169 class RegistrationWorkflowInfo( SIRPWorkflowInfo, grok.Adapter):169 class RegistrationWorkflowInfo(KOFAWorkflowInfo, grok.Adapter): 170 170 """Adapter to adapt Student objects to workflow info objects. 171 171 """ 172 172 grok.context(IStudent) 173 grok.provides(I SIRPWorkflowInfo)173 grok.provides(IKOFAWorkflowInfo) 174 174 175 175 def __init__(self, context):
Note: See TracChangeset for help on using the changeset viewer.