Changeset 12169
- Timestamp:
- 8 Dec 2014, 07:14:15 (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
r12167 r12169 932 932 transition_id = form['transition'] 933 933 wf_info = IWorkflowInfo(self.context) 934 wf_info.fireTransition(transition_id) 934 try: 935 wf_info.fireTransition(transition_id) 936 except InvalidTransitionError, error: 937 self.flash(error, type="warning") 935 938 return 936 939 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/documents.py
r12168 r12169 143 143 @property 144 144 def is_verifiable(self): 145 files = self.connected_files 146 if files is not None and len(files) != len(self.filenames): 147 return False, _("No file uploaded.") 145 148 return True, None 146 149 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12166 r12169 849 849 self.browser.getControl(name="transition").value = ['submit'] 850 850 self.browser.getControl("Save").click() 851 # Document can only be verified if files have been uploaded before 851 852 self.browser.getControl(name="transition").value = ['verify'] 852 853 self.browser.getControl("Save").click() 853 self.assertEqual(document.state, 'verified') 854 self.assertTrue('No file uploaded' in self.browser.contents) 855 self.assertEqual(document.state, 'submitted') 856 # We set state here manually (verification is tested in test_verify_document) 857 IWorkflowState(document).setState(VERIFIED) 854 858 855 859 # Manage button and form is no longer available
Note: See TracChangeset for help on using the changeset viewer.