Changeset 10092 for main/waeup.kofa


Ignore:
Timestamp:
22 Apr 2013, 15:15:19 (12 years ago)
Author:
Henrik Bettermann
Message:

Basename must come first.

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  
    296296            marked_filename = '__%s__%s/%s_%s%s' % (
    297297                APPLICANT_IMAGE_STORE_NAME,
    298                 parent_name, self.context.applicant_id, basename, ext)
     298                parent_name, basename, self.context.applicant_id, ext)
    299299        return marked_filename
    300300
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicant.py

    r10091 r10092  
    152152        appl.__parent__ = fake_container
    153153        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)
    157157        return
    158158
Note: See TracChangeset for help on using the changeset viewer.