Changeset 7417 for main/waeup.sirp/trunk/src
- Timestamp:
- 21 Dec 2011, 07:29:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py
r7412 r7417 134 134 file_store = getUtility(IExtFileStore) 135 135 appl_file = file_store.getFileByContext(self) 136 if appl_file is None: 137 return 136 138 stud_file_id = IFileStoreNameChooser(student).chooseName( 137 139 attr="passport.jpg") 138 try: 139 file_store.createFile(stud_file_id, appl_file) 140 except AttributeError: 141 # Pass if passport picture doesn't exist 142 pass 140 file_store.createFile(stud_file_id, appl_file) 143 141 return 144 142
Note: See TracChangeset for help on using the changeset viewer.