Changeset 12088 for main/waeup.ikoba/trunk
- Timestamp:
- 28 Nov 2014, 16:37:38 (10 years ago)
- 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 643 643 644 644 def update(self): 645 CUSTMANAGE_STATES = getUtility(ICustomersUtils).CUSTMANAGE_STATES 645 CUSTMANAGE_STATES = getUtility( 646 ICustomersUtils).CUSTMANAGE_CUSTOMER_STATES 646 647 if self.context.customer.state not in CUSTMANAGE_STATES: 647 648 emit_lock_message(self) -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/documents.py
r12057 r12088 81 81 # Customer must be approved 82 82 cond1 = self.customer.state in getUtility( 83 ICustomersUtils).DOCMANAGE_ STATES83 ICustomersUtils).DOCMANAGE_CUSTOMER_STATES 84 84 # Document must be in state created 85 85 cond2 = self.state in getUtility( 86 I DocumentsUtils).DOCMANAGE_STATES86 ICustomersUtils).DOCMANAGE_DOCUMENT_STATES 87 87 if not (cond1 and cond2): 88 88 return False -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12087 r12088 275 275 CUSTOMER_ID_PREFIX = u'K' 276 276 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,) 280 286 281 287 SKIP_UPLOAD_VIEWLETS = () -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/utils.py
r12087 r12088 37 37 grok.implements(IDocumentsUtils) 38 38 39 DOCMANAGE_STATES = (CREATED,)40 41 39 TRANSLATED_DOCUMENT_STATES = { 42 40 CREATED: _('created'),
Note: See TracChangeset for help on using the changeset viewer.