Changeset 1157
- Timestamp:
- 30 Dec 2006, 15:50:04 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py
r1156 r1157 44 44 return None 45 45 creation_date = DateTime(res[0].CreationDate) 46 info['penalty'] = creation_date.lessThan(DateTime('2006/12/5'))\ 47 and DateTime().greaterThan(DateTime('2006/12/30')) 46 info['penalty'] = creation_date.lessThan(DateTime('2006/12/5')) 48 47 info['id'] = student_id 49 48 info['student'] = student … … 54 53 info['clear_doc'] = student.clearance.getContent() 55 54 info['clear_review_state'] = wf.getInfoFor(student.clearance,'review_state',None) 56 if info['clear_review_state'] == "clearance_requested":55 if info['clear_review_state'] in ('clearance_requested', 'cleared_and_validated',): 57 56 info['penalty'] = info['penalty'] and\ 58 info['clear_doc'].entry_date. lessThan(DateTime('2006/12/30'))57 info['clear_doc'].entry_date.greaterThan(DateTime('2006/12/30')) 59 58 course = getattr(student,'study_course',None) 60 59 if course: -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r1145 r1157 23 23 logger = logging.getLogger('Student.Info') 24 24 25 from DateTime import DateTime26 25 27 26 info = {} … … 63 62 ##brain = res[-1] 64 63 ##student = brain.getObject() 65 66 creation_date = DateTime(student.creation_date)67 info['penalty'] = creation_date.lessThan(DateTime('2006/12/5'))\68 and DateTime().greaterThan(DateTime('2006/12/30'))69 64 70 65 info['review_state'] = wf.getInfoFor(student,'review_state',None)
Note: See TracChangeset for help on using the changeset viewer.