Ignore:
Timestamp:
21 Nov 2014, 18:52:43 (10 years ago)
Author:
Henrik Bettermann
Message:

Implement translated_state property correctly so that we can more easily customized customer registration and document verification state names.

File:
1 edited

Legend:

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

    r12018 r12032  
    1919"""
    2020import grok
    21 from waeup.ikoba.interfaces import STARTED, APPROVED
     21from waeup.ikoba.interfaces import MessageFactory as _
     22from waeup.ikoba.interfaces import CREATED, STARTED, REQUESTED, APPROVED
    2223from waeup.ikoba.customers.interfaces import ICustomersUtils
    2324
     
    4142
    4243    DOCMANAGE_STATES = (APPROVED,)
     44
     45    TRANSLATED_STATES = {
     46        CREATED: _('created'),
     47        STARTED: _('started'),
     48        REQUESTED: _('requested'),
     49        APPROVED: _('approved'),
     50        }
Note: See TracChangeset for help on using the changeset viewer.