- Timestamp:
- 30 Jan 2015, 14:02:53 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12517 r12526 38 38 IContactForm, IObjectHistory, IIkobaObject, IIkobaUtils, 39 39 IPasswordValidator, IUserAccount, 40 VERIFIED, REJECTED, EXPIRED, CREATED, REQUESTED, APPROVED )40 VERIFIED, REJECTED, EXPIRED, CREATED, REQUESTED, APPROVED, PROVISIONALLY) 41 41 from waeup.ikoba.browser.layout import ( 42 42 IkobaPage, IkobaEditFormPage, IkobaAddFormPage, IkobaDisplayFormPage, … … 322 322 @property 323 323 def is_requestable(self): 324 if self.context.state in (REQUESTED, APPROVED):324 if self.context.state in (REQUESTED, PROVISIONALLY, APPROVED): 325 325 return False 326 326 return True … … 717 717 @property 718 718 def form_fields(self): 719 if self.context.state in (REQUESTED, APPROVED):719 if self.context.state in (REQUESTED, PROVISIONALLY, APPROVED): 720 720 return grok.AutoFields(ICustomer).select('email', 'phone') 721 721 return grok.AutoFields(ICustomer).omit( … … 728 728 729 729 def is_requestable(self, action=None): 730 if self.context.state in (REQUESTED, APPROVED):730 if self.context.state in (REQUESTED, PROVISIONALLY, APPROVED): 731 731 return False 732 732 return True -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12524 r12526 407 407 self.browser.getControl("Apply").click() 408 408 self.browser.open(self.trigtrans_path) 409 self.browser.getControl(name="transition").value = ['approve'] 409 self.browser.getControl(name="transition").value = ['approve_provisionally'] 410 self.browser.getControl("Apply").click() 411 self.browser.open(self.trigtrans_path) 412 self.browser.getControl(name="transition").value = ['approve_finally'] 410 413 self.browser.getControl("Apply").click() 411 414 self.browser.open(self.trigtrans_path) -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12491 r12526 38 38 from waeup.ikoba.interfaces import ( 39 39 STARTED, CREATED, REQUESTED, APPROVED, SUBMITTED, VERIFIED, REJECTED, 40 EXPIRED, 40 EXPIRED, PROVISIONALLY, 41 41 IIkobaUtils, IExtFileStore) 42 42 from waeup.ikoba.customers.interfaces import ICustomersUtils … … 290 290 CUSTMANAGE_CUSTOMER_STATES = (STARTED,) 291 291 292 DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED, )292 DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED, PROVISIONALLY) 293 293 294 294 DOCMANAGE_DOCUMENT_STATES = (CREATED,) … … 303 303 REQUESTED: _('requested'), 304 304 APPROVED: _('approved'), 305 PROVISIONALLY: _('provisionally approved'), 305 306 } 306 307 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/workflow.py
r12221 r12526 26 26 from waeup.ikoba.interfaces import ( 27 27 IObjectHistory, IIkobaWorkflowInfo, IIkobaUtils, 28 STARTED, CREATED, REQUESTED, APPROVED,28 STARTED, CREATED, REQUESTED, PROVISIONALLY, APPROVED, 29 29 SUBMITTED, VERIFIED, REJECTED, EXPIRED) 30 30 from waeup.ikoba.interfaces import MessageFactory as _ … … 65 65 66 66 Transition( 67 transition_id = 'approve_provisionally', 68 title = _('Approve customer provisionally'), 69 msg = _('Customer registration provisionally approved'), 70 source = REQUESTED, 71 destination = PROVISIONALLY), 72 73 Transition( 74 transition_id = 'approve_finally', 75 title = _('Approve finally'), 76 msg = _('Customer registration finally approved'), 77 source = PROVISIONALLY, 78 destination = APPROVED), 79 80 Transition( 67 81 transition_id = 'approve', 68 82 title = _('Approve customer'), … … 98 112 source = REQUESTED, 99 113 destination = STARTED), 114 115 Transition( 116 transition_id = 'reset4', 117 title = _('Reset customer'), 118 msg = _('Reset to initial customer state'), 119 source = PROVISIONALLY, 120 destination = STARTED), 121 122 Transition( 123 transition_id = 'reset5', 124 title = _('Reset to requested'), 125 msg = _("Reset to 'requested'"), 126 source = PROVISIONALLY, 127 destination = REQUESTED), 100 128 101 129 ) -
main/waeup.ikoba/trunk/src/waeup/ikoba/interfaces.py
r12522 r12526 51 51 STARTED = 'started' 52 52 REQUESTED = 'requested' 53 PROVISIONALLY = 'provisionally' 53 54 APPROVED = 'approved' 54 55
Note: See TracChangeset for help on using the changeset viewer.