Changeset 12348 for main/waeup.ikoba/trunk/src/waeup
- Timestamp:
- 31 Dec 2014, 08:31:44 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12347 r12348 657 657 pnav = 4 658 658 659 def update(self ):659 def update(self, CANCEL=None): 660 660 CUSTMANAGE_STATES = getUtility( 661 661 ICustomersUtils).CUSTMANAGE_CUSTOMER_STATES 662 662 if self.context.customer.state not in CUSTMANAGE_STATES: 663 663 emit_lock_message(self) 664 return 665 if CANCEL is not None: 666 self.redirect(self.url(self.context)) 664 667 return 665 668 super(CustomerFilesUploadPage, self).update() -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/filesuploadpage.pt
r11971 r12348 6 6 </tbody> 7 7 </table> 8 <input class="btn btn-default" type="submit" name="CANCEL" value="Cancel" /> 8 9 </form> -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12345 r12348 602 602 'src="http://localhost/app/customers/K1000000/passport.jpg"' 603 603 in self.browser.contents) 604 self.browser.getControl(name="CANCEL").click() 605 self.assertEqual(self.browser.url, self.customer_path) 604 606 605 607 def test_customer_baseedit(self):
Note: See TracChangeset for help on using the changeset viewer.