Changeset 17877 for main/waeup.kofa
- Timestamp:
- 10 Aug 2024, 07:01:52 (3 months ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r17867 r17877 4 4 1.8.2.dev0 (unreleased) 5 5 ======================= 6 7 * Add an id to download filenames if necessary. Enable this feature for 8 Final Year Clearance Routing Slip. 6 9 7 10 * Implement Final Year Clearance Routing Slip upload (not active in base package). -
main/waeup.kofa/trunk/src/waeup/kofa/browser/fileviewlets.py
r12448 r17877 179 179 180 180 @property 181 def add_id(self): 182 return 183 184 @property 181 185 def download_filename(self): 186 if self.add_id: 187 return self.download_name + '_%s' % self.add_id 182 188 return self.download_name 183 189 -
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.