Changeset 12444 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 11 Jan 2015, 22:43:35 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/fileviewlets.py
r12408 r12444 97 97 class SampleScanEditUpload(SampleScanManageUpload): 98 98 """Scan upload viewlet for customer. 99 100 If a user has both permissions, waeup.manageCustomer and 101 waeup.handleCustomer, the upload viewlet appears twice. 99 102 """ 100 103 grok.view(DocumentEditFormPage) … … 121 124 grok.require('waeup.viewCustomer') 122 125 download_name = u'sample' 126 123 127 124 128 class SampleScanPDFSlip(SampleScanDisplay): … … 166 170 download_name = u'sample.pdf' 167 171 172 168 173 class PDFScanSlip(PDFScanDisplay): 169 174 grok.view(PDFDocumentSlipPage) -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12388 r12444 1104 1104 name='upload_pdfscanmanageupload').click() 1105 1105 self.assertTrue( 1106 'href="http://localhost/app/customers/K1000000/documents/%s/sample.pdf"> PDF File</a>'1107 % docidin self.browser.contents)1106 'href="http://localhost/app/customers/K1000000/documents/%s/sample.pdf">%s.pdf</a>' 1107 % (docid, docid[:9]) in self.browser.contents) 1108 1108 # Browsing the link shows a real pdf 1109 1109 self.browser.open('sample.pdf')
Note: See TracChangeset for help on using the changeset viewer.