Ignore:
Timestamp:
28 Nov 2014, 16:37:38 (10 years ago)
Author:
Henrik Bettermann
Message:

Move and rename some dicts.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba
Files:
4 edited

Legend:

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

    r12062 r12088  
    643643
    644644    def update(self):
    645         CUSTMANAGE_STATES = getUtility(ICustomersUtils).CUSTMANAGE_STATES
     645        CUSTMANAGE_STATES = getUtility(
     646            ICustomersUtils).CUSTMANAGE_CUSTOMER_STATES
    646647        if self.context.customer.state not in CUSTMANAGE_STATES:
    647648            emit_lock_message(self)
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/documents.py

    r12057 r12088  
    8181            # Customer must be approved
    8282            cond1 = self.customer.state in getUtility(
    83                 ICustomersUtils).DOCMANAGE_STATES
     83                ICustomersUtils).DOCMANAGE_CUSTOMER_STATES
    8484            # Document must be in state created
    8585            cond2 = self.state in getUtility(
    86                 IDocumentsUtils).DOCMANAGE_STATES
     86                ICustomersUtils).DOCMANAGE_DOCUMENT_STATES
    8787            if not (cond1 and cond2):
    8888                return False
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r12087 r12088  
    275275    CUSTOMER_ID_PREFIX = u'K'
    276276
    277     CUSTMANAGE_STATES = (STARTED,)
    278 
    279     DOCMANAGE_STATES = (APPROVED,)
     277    CUSTMANAGE_CUSTOMER_STATES = (STARTED,)
     278
     279    DOCMANAGE_CUSTOMER_STATES = (APPROVED,)
     280
     281    DOCMANAGE_DOCUMENT_STATES = (CREATED,)
     282
     283    APPMANAGE_CUSTOMER_STATES = DOCMANAGE_CUSTOMER_STATES
     284
     285    APPMANAGE_APPLICATION_STATES = (CREATED,)
    280286
    281287    SKIP_UPLOAD_VIEWLETS = ()
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/utils.py

    r12087 r12088  
    3737    grok.implements(IDocumentsUtils)
    3838
    39     DOCMANAGE_STATES = (CREATED,)
    40 
    4139    TRANSLATED_DOCUMENT_STATES = {
    4240        CREATED: _('created'),
Note: See TracChangeset for help on using the changeset viewer.