Changeset 1612 for WAeUP_SRP/trunk/skins
- Timestamp:
- 20 Mar 2007, 18:35:57 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/course_registration_slip.pt
r1579 r1612 19 19 20 20 <div tal:condition="validated"> 21 - validated by Course Adviser - 21 - validated by Course Adviser - 22 <span tal:condition="info/doc/validated_by|nothing" tal:omit-tag=""> 23 <span tal:replace="info/doc/validated_by" /> on <span tal:replace="info/doc/validation_date" /> 24 </span> 22 25 </div> 23 26 <div tal:condition="not: validated"> -
WAeUP_SRP/trunk/skins/waeup_student/validate_courses.py
r1589 r1612 13 13 """ 14 14 from Products.CMFCore.WorkflowCore import WorkflowException 15 import DateTime 16 current = DateTime.DateTime() 15 17 try: 16 18 from Products.zdb import set_trace … … 30 32 student_id = context.getStudentId() 31 33 student = getattr(students_folder,student_id) 34 level_doc = context.getContent() 35 if level_doc.portal_type == 'StudentStudyLevel': 36 level_doc.edit(mapping={'validated_by': member_id, 37 'validation_date': current,}) 32 38 try: 33 39 wftool.doActionFor(student,'validate_courses')
Note: See TracChangeset for help on using the changeset viewer.