Changeset 1753
- Timestamp:
- 8 May 2007, 10:02:01 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1752 r1753 777 777 adapters = [MappingStorageAdapter(schema, item)] 778 778 dm = DataModel(item, adapters,context=self) 779 logger.info('Start importing from %s.csv' % name)779 logger.info('Start importing from %s.csv' % filename) 780 780 import_keys = item.keys() 781 781 diff_set = set(import_keys).difference(set(schema.keys())) … … 787 787 logger.error('%s not in layout.' % diff_set) 788 788 return 789 s = ' "id",'+','.join(['"%s"' % fn for fn in import_keys])789 s = ','.join(['"%s"' % fn for fn in import_keys]) 790 790 imported.append(s) 791 791 not_imported.append('%s,"Error"' % s) -
WAeUP_SRP/trunk/profiles/default/layouts/import_student.xml
r1747 r1753 31 31 <property name="hidden_readonly_layout_modes"/> 32 32 <property name="display_width">15</property> 33 </widget> 33 </widget> 34 34 <widget name="perm_address" meta_type="String Widget"> 35 35 <property name="title">Address</property> … … 43 43 <property name="hidden_readonly_layout_modes"/> 44 44 <property name="display_width">60</property> 45 </widget> 45 </widget> 46 46 <widget name="state" meta_type="Select Widget"> 47 47 <property name="title">State</property> … … 180 180 <property name="hidden_readonly_layout_modes"/> 181 181 <property name="display_width">10</property> 182 </widget> 183 <widget name="jamb_score" meta_type="String Widget"> 184 <property name="title">JAMB Score</property> 185 <property name="fields"> 186 <element value="jamb_score"/> 187 </property> 188 <property name="label">JAMB Score</property> 189 <property name="label_edit">JAMB Score</property> 190 <property name="readonly_layout_modes"/> 191 <property name="hidden_layout_modes"/> 192 <property name="hidden_readonly_layout_modes"/> 193 <property name="display_width">3</property> 182 194 </widget> 183 195 <widget name="matric_no" meta_type="String Widget"> … … 250 262 <row> 251 263 <cell name="jamb_reg_no"/> 264 </row> 265 <row> 266 <cell name="jamb_score"/> 252 267 </row> 253 268 <row> -
WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
r1684 r1753 47 47 student_from_cat = res[0] 48 48 49 res = returning(matric_no = matric_no)50 if res:51 student_from_returning = res[0]52 else:53 return None49 #res = returning(matric_no = matric_no) 50 #if res: 51 # student_from_returning = res[0] 52 #else: 53 # return None 54 54 55 55 res = results(matric_no = matric_no) … … 123 123 info['gpa'] = gpa 124 124 info['results'] = (sem1, sem2) 125 info['student_from_returning'] = student_from_returning125 #info['student_from_returning'] = student_from_returning 126 126 info['student'] = student_from_cat 127 127 info['s_id'] = student_id -
WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt
r1679 r1753 27 27 </tr> 28 28 <tr> 29 <th valign="top">Course of Study:</th><td tal:content="info/student _from_returning/Coursemajor" />29 <th valign="top">Course of Study:</th><td tal:content="info/student/course" /> 30 30 </tr> 31 31 <tr>
Note: See TracChangeset for help on using the changeset viewer.