Ignore:
Timestamp:
16 Nov 2014, 11:53:02 (10 years ago)
Author:
Henrik Bettermann
Message:

Add browser components for customers. Tests will follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/workflow.py

    r11964 r11967  
    2525from waeup.ikoba.interfaces import (
    2626    IObjectHistory, IIkobaWorkflowInfo, IIkobaUtils,
    27     CREATED, REQUESTED, APPROVED)
     27    STARTED, CREATED, REQUESTED, APPROVED)
    2828from waeup.ikoba.interfaces import MessageFactory as _
    2929from waeup.ikoba.workflow import IkobaWorkflow, IkobaWorkflowInfo
     
    3232
    3333
    34 IMPORTABLE_STATES = (REQUESTED, APPROVED)
     34IMPORTABLE_STATES = (STARTED, REQUESTED, APPROVED)
    3535
    3636REGISTRATION_TRANSITIONS = (
     
    4444
    4545    Transition(
     46        transition_id = 'start',
     47        title = _('Start registration'),
     48        source = CREATED,
     49        condition = NullCondition,
     50        msg = _('Customer registration started'),
     51        destination = STARTED),
     52
     53    Transition(
    4654        transition_id = 'request',
    4755        title = _('Request registration'),
    4856        msg = _('Customer registration requested'),
    49         source = REQUESTED,
    50         destination = APPROVED),
     57        source = STARTED,
     58        destination = REQUESTED),
    5159
    5260    Transition(
     
    6270        msg = _('Reset to initial customer state'),
    6371        source = APPROVED,
    64         destination = CREATED),
     72        destination = STARTED),
    6573
    6674    Transition(
     
    7684        msg = _("Reset to initial state"),
    7785        source = REQUESTED,
    78         destination = CREATED),
     86        destination = STARTED),
    7987
    8088    )
Note: See TracChangeset for help on using the changeset viewer.