Changeset 3780
- Timestamp:
- 21 Nov 2008, 09:26:51 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/CHANGES.txt
r3772 r3780 122 122 ----------------- 123 123 - enable random bed booking order 124 125 1.24 (2008-11-20) 126 ----------------- 127 - get study_mode from certificates and ignore study_mode attribute of study_course objects -
WAeUP_SRP/trunk/WAeUPImport.py
r3741 r3780 742 742 'current_level', 743 743 'current_session', 744 'current_mode', 744 'current_mode', #is no longer used and visible but can still be imported 745 745 'current_verdict', 746 746 'previous_verdict', -
WAeUP_SRP/trunk/WAeUPTables.py
r3772 r3780 867 867 'end_level', # from certificate 868 868 'level', # current_level 869 'mode', # current_mode869 'mode', # from certificate 870 870 'session', # current_session 871 871 'verdict', # current_verdict … … 966 966 return getattr(doc,'current_level',None) 967 967 968 #def get_from_doc_mode(self,doc,cached_data={}): 969 # "return the students mode" 970 # if doc is None: 971 # return None 972 # cm = getattr(doc,'current_mode',None) 973 # return cm 974 968 975 def get_from_doc_mode(self,doc,cached_data={}): 969 976 "return the students mode" 970 977 if doc is None: 971 978 return None 972 cm = getattr(doc,'current_mode',None) 973 return cm 979 if hasattr(self,"_v_certificates") and self._v_certificates.has_key(doc.study_course): 980 return self._v_certificates[doc.study_course]['study_mode'] 981 certificate_res = self.portal_catalog(id = doc.study_course) 982 if len(certificate_res) != 1: 983 return None 984 return getattr(certificate_res[0].getObject().getContent(),'study_mode','unknown') 974 985 975 986 -
WAeUP_SRP/trunk/WAeUPTool.py
r3776 r3780 868 868 dsc['current_level'] = level 869 869 dsc['current_verdict'] = verdict 870 dsc['current_mode'] = em 870 dsc['current_mode'] = em #no longer used 871 871 dsc['current_session'] = '05' 872 872 studycourse.getContent().edit(mapping=dsc) … … 1041 1041 # because ug_ft has two different entry modes 1042 1042 1043 if brain.entry_mode: 1044 da['entry_mode'] = brain.entry_mode 1043 if brain.entry_mode: # does not happen because import_application 1044 da['entry_mode'] = brain.entry_mode # schema has no field entry_mode 1045 1045 elif brain.screening_type == 'pume': 1046 1046 da['entry_mode'] = 'ume_ft' … … 1116 1116 dsc['study_course'] = brain.course_admitted 1117 1117 dsc['current_verdict'] = '' 1118 dsc['current_mode'] = da['entry_mode'] 1118 dsc['current_mode'] = da['entry_mode'] # no longer used 1119 1119 if da['entry_mode'].startswith('de'): 1120 1120 dsc['current_level'] = '200' -
WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml
r3689 r3780 119 119 <cell name="current_level"/> 120 120 </row> 121 <row>122 <cell name="current_mode"/>123 </row>124 121 </table> 125 122 </object> -
WAeUP_SRP/trunk/profiles/futminna/layouts/members.xml
r3763 r3780 116 116 <property name="display_width">20</property> 117 117 <property name="size_max">0</property> 118 <property name="check_words"> fceokene</property>118 <property name="check_words">minna</property> 119 119 </widget> 120 120 <widget name="roles" meta_type="Generic MultiSelect Widget"> -
WAeUP_SRP/trunk/skins/waeup_utilities/ti_507_resolve.py
r3778 r3780 69 69 d['study_course'] = student.course 70 70 d['matric_no'] = student.matric_no 71 d['entry_mode'] = student.entry_mode 71 72 wrong[student.id] = d 72 73 if (student.mode,study_mode) not in (('ume_ft', 'ug_ft'),('de_pt', 'ug_pt'),('de_ft', 'ug_ft')): 73 logger.info("; %(student_id)s; %(matric_no)s ; %(study_course)s ; %( current_mode_old)s ; %(current_mode)s" % d)74 logger.info("; %(student_id)s; %(matric_no)s ; %(study_course)s ; %(entry_mode)s ; %(current_mode_old)s ; %(current_mode)s" % d) 74 75 # if wrong and not (len(wrong) % commit_after): 75 76 # logger.info('found %d wrong of %d' % (len(wrong),count)) … … 81 82 82 83 return 84 85 # the following must not be done because I've changed get_from_doc_mode in WAeUPTables. The current_mode field 86 # of the study_course object is no longer used 83 87 84 88 for student_id,d in wrong.items():
Note: See TracChangeset for help on using the changeset viewer.