Changeset 1315
- Timestamp:
- 17 Jan 2007, 17:38:41 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/schemas/student_study_course.xml
r727 r1315 1 1 <?xml version="1.0"?> 2 2 <object name="student_study_course" meta_type="CPS Schema"> 3 <field name="title" meta_type="CPS String Field"/> 4 <field name="study_course" meta_type="CPS String Field"> 5 <property name="is_searchabletext">True</property> 6 </field> 7 <field name="faculty" meta_type="CPS String Field"> 3 <field name="title" meta_type="CPS String Field"/> 4 <field name="study_course" meta_type="CPS String Field"> 8 5 <property name="is_searchabletext">True</property> 9 </field> 10 <field name="department" meta_type="CPS String Field"> 11 <property name="is_searchabletext">True</property> 12 </field> 13 <field name="max_elect" meta_type="CPS String Field"/> 14 <field name="max_load" meta_type="CPS Int Field"/> 15 <field name="max_pass" meta_type="CPS Int Field"/> 16 <field name="n_core" meta_type="CPS Int Field"/> 17 <field name="nr_years" meta_type="CPS Int Field"/> 18 <field name="probation_credits" meta_type="CPS Int Field"/> 19 <field name="promotion_credits" meta_type="CPS Int Field"/> 20 <field name="start_level" meta_type="CPS String Field"/> 21 <field name="end_level" meta_type="CPS String Field"/> 6 </field> 7 <field name="current_level" meta_type="CPS String Field"/> 22 8 </object> -
WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py
r1314 r1315 18 18 d[f] = getattr(brain,f,'--') 19 19 if f == "sex": 20 d[f] = 'M'21 20 if d[f]: 22 d[f] = 'F' 21 d[f] = 'F' 22 else: 23 d[f] = 'M' 23 24 elif f == "name": 24 25 d[f] = d[f].strip() -
WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
r1258 r1315 41 41 42 42 students_object = context.portal_url.getPortalObject().campus.students 43 student = getattr(students_object, student_id) 44 45 46 clear = getattr(student,'clearance',None) 47 if clear: 48 value = clear.getContent().matric_no 49 else: 50 return None 43 ##student = getattr(students_object, student_id) 44 ##clear = getattr(student,'clearance',None) 45 ##if clear: 46 ## value = clear.getContent().matric_no 47 ##else: 48 ## return None 51 49 52 50 res = returning(matric_no = value)
Note: See TracChangeset for help on using the changeset viewer.