Changeset 2580
- Timestamp:
- 8 Nov 2007, 10:31:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2579 r2580 757 757 payments.getContent().edit(mapping=dpay) 758 758 self.portal_workflow.doActionFor(payments,'open') 759 # 760 # passport foto 761 app_picture ="%s/import/images/%s/%s_passport.jpg" % (i_home, 762 brain.screening_type, 763 brain.reg_no) 764 images_dir = os.path.join("%s" % images_base,student_id) 765 if not os.path.exists(images_dir): 766 os.mkdir(images_dir) 767 image_name = os.path.join(images_dir,"passport_%(student_id)s.jpg" % vars()) 768 if os.path.exists(app_picture): 769 copy2(app_picture,image_name) 770 else: 771 logger.info('passport of %s/%s not found: %s' % (student_id, 772 brain.reg_no, 773 app_picture)) 774 759 775 return student_id 760 776 ###)
Note: See TracChangeset for help on using the changeset viewer.