Changeset 1921
- Timestamp:
- 18 Jun 2007, 09:28:04 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1911 r1921 212 212 def loadStudentFoto(self,student,filename,folder): 213 213 "return a student passport picture" 214 app_doc = student.application.getContent() 214 app = student.application 215 app_doc = app.getContent() 215 216 #clear = student.clearance 216 217 #clear_doc = clear.getContent() … … 225 226 else: 226 227 return "passport picture not found %s" % picture1 227 228 reopened = False 229 if self.portal_workflow.getInfoFor(app,'review_state',None) !='opened': 230 self.portal_workflow.doActionFor(app,'open') 231 reopened = True 228 232 outfile = file.read() 229 233 app_doc.manage_addFile('passport', 230 234 file=outfile, 231 235 title="%s.jpg" % filename) 236 if reopened: 237 self.portal_workflow.doActionFor(app,'close') 232 238 return "successfully loaded passport picture" 233 239 ###)
Note: See TracChangeset for help on using the changeset viewer.