- Timestamp:
- 20 Mar 2007, 18:35:57 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py
r1607 r1612 96 96 if sc is None: 97 97 break 98 #from pdb import set_trace;set_trace()99 98 sc_obj = sc.getContent() 100 99 cert_id = sc_obj.study_course … … 123 122 ) 124 123 if real_object.portal_type == "StudentStudyLevel": 125 context_obj = getattr(certificate_obj,real_object.getId(),None) 124 if real_object.meta_type != "StudentStudyLevel": 125 context_obj = getattr(certificate_obj,real_object.getId(),None) 126 else: 127 context_obj = getattr(certificate_obj,real_object.aq_parent.getId(),None) 126 128 if context_obj is None: 129 #from pdb import set_trace;set_trace() 127 130 break 128 131 allowed = set(('CourseAdviser', 'SectionManager')) -
WAeUP_SRP/trunk/profiles/default/schemas/student_study_level.xml
r1399 r1612 4 4 <field name="code" meta_type="CPS String Field"/> 5 5 <field name="session" meta_type="CPS String Field"/> 6 <field name="gpa" meta_type="CPS Float Field"/>7 <field name="status" meta_type="CPS String Field"/>8 6 <field name="verdict" meta_type="CPS String Field"/> 9 <field name="imported_gpa" meta_type="CPS Float Field"/> 7 <field name="validated_by" meta_type="CPS String Field"/> 8 <field name="validation_date" meta_type="CPS DateTime Field"/> 10 9 </object> -
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.