Changeset 17877 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 10 Aug 2024, 07:01:52 (5 months ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/fileviewlets.py
r17867 r17877 164 164 grok.require('waeup.viewStudent') 165 165 label = _(u'Scanned Final Clearance Routing Slip ') 166 download_name = u'routingslip' 167 166 download_name = u'routingslip.pdf' 168 167 169 168 class FinalClearanceUploadManage(StudentFileUpload): … … 174 173 grok.view(StudentBaseManageFormPage) 175 174 grok.require('waeup.manageStudent') 176 label = _(u'Scanned Final Clearance Routing Slip (pdf preferred)')177 download_name = u'routingslip '175 label = _(u'Scanned Final Clearance Routing Slip (pdf only)') 176 download_name = u'routingslip.pdf' 178 177 179 178 class FinalClearanceUploadEdit(FinalClearanceUploadManage): … … 223 222 """Renders pdf slip. 224 223 """ 225 grok.name('routingslip ')224 grok.name('routingslip.pdf') 226 225 download_name = u'routingslip' 226 227 @property 228 def add_id(self): 229 return self.context.student_id 227 230 228 231 class ApplicationSlipImage(StudentImage): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r17867 r17877 719 719 self.browser.getControl( 720 720 name='upload_finalclearanceuploadmanage').click() 721 self.assertTrue( 722 'href="http://localhost/app/students/K1000000/routingslip"' 721 print self.browser.contents 722 self.assertTrue( 723 'href="http://localhost/app/students/K1000000/routingslip.pdf"' 723 724 in self.browser.contents) 724 725 return
Note: See TracChangeset for help on using the changeset viewer.