Ignore:
Timestamp:
1 Feb 2015, 06:34:11 (10 years ago)
Author:
Henrik Bettermann
Message:

Redirect to file upload page.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
2 edited

Legend:

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

    r12532 r12533  
    735735
    736736    def dataNotComplete(self):
    737         """To be implemented in the customization package.
    738         """
    739737        store = getUtility(IExtFileStore)
    740738        error = ''
     
    751749        if self.dataNotComplete():
    752750            self.flash(self.dataNotComplete(), type="warning")
     751            self.redirect(self.url(self.context, 'upload_files'))
    753752            return
    754753        IWorkflowInfo(self.context).fireTransition('request')
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12532 r12533  
    621621        self.browser.getLink("Edit").click()
    622622        self.browser.getControl(name="form.email").value = 'new_email@aa.ng'
    623         self.browser.getControl("Save", index=1).click()
     623        self.browser.getControl("Save", index=0).click()
    624624        self.assertMatches('...Form has been saved...',
    625625                           self.browser.contents)
     
    628628                           self.browser.contents)
    629629        self.assertEqual(self.customer.state, 'started')
    630         # Customer must upload a passport picture
    631         self.browser.open(self.customer_path)
    632         self.browser.getLink("Upload files").click()
     630        # Customer must upload a passport picture. We are already on
     631        # the upload page.
    633632        ctrl = self.browser.getControl(name='passporteditupload')
    634633        file_obj = open(SAMPLE_IMAGE, 'rb')
Note: See TracChangeset for help on using the changeset viewer.