Changeset 10092 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 22 Apr 2013, 15:15:19 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py
r10091 r10092 296 296 marked_filename = '__%s__%s/%s_%s%s' % ( 297 297 APPLICANT_IMAGE_STORE_NAME, 298 parent_name, self.context.applicant_id, basename, ext)298 parent_name, basename, self.context.applicant_id, ext) 299 299 return marked_filename 300 300 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicant.py
r10091 r10092 152 152 appl.__parent__ = fake_container 153 153 chooser = IFileStoreNameChooser(appl) 154 result = chooser.chooseName(attr='any .pdf')155 self.assertEqual( 156 result, '__img-applicant__folder/ %s_any.pdf' % appl.applicant_id)154 result = chooser.chooseName(attr='anything.pdf') 155 self.assertEqual( 156 result, '__img-applicant__folder/anything_%s.pdf' % appl.applicant_id) 157 157 return 158 158
Note: See TracChangeset for help on using the changeset viewer.