Ignore:
Timestamp:
10 Jun 2011, 00:26:27 (14 years ago)
Author:
uli
Message:

Clean up:

  • Cut overlong lines
  • Remove trailing whitespace
  • Pack all imports from one package into one statement
  • Move (unneeded) late import to top of file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py

    r6307 r6316  
    22"""
    33import 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
     4from hurry.workflow.workflow import (
     5    Transition, Workflow, WorkflowVersions, WorkflowInfo, WorkflowState,
     6    NullCondition)
     7from hurry.workflow.interfaces import (
     8    IWorkflow, IWorkflowState, IWorkflowInfo, IWorkflowVersions,
     9    InvalidTransitionError)
    910from waeup.sirp.applicants.interfaces import IApplicantBaseData
     11
    1012
    1113INITIALIZED = 'initialized'
     
    8486        destination = STARTED)
    8587
    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]
    8992
    9093
     
    98101
    99102    def getTransition(self, source, transition_id):
    100         from hurry.workflow.interfaces import\
    101             InvalidTransitionError, ConditionFailedError
    102 
    103103        transition = self._id_transitions[transition_id]
    104104        if transition.source != source:
     
    147147    grok.context(IApplicantBaseData)
    148148    grok.provides(IWorkflowState)
    149    
     149
    150150class ApplicationInfo(grok.Adapter, WorkflowInfo):
    151151    """Adapter to adapt Applicant objects to workflow info objects.
Note: See TracChangeset for help on using the changeset viewer.