- Timestamp:
- 28 Sep 2012, 09:56:23 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r9235 r9253 105 105 fields = tuple(sorted(iface_names( 106 106 IStudent, omit=['loggerInfo']))) + ( 107 'password', 'state', 'history', 'certcode') 107 'password', 'state', 'history', 'certcode', 'is_postgrad', 108 'current_level', 'current_session') 108 109 109 110 #: The title under which this exporter will be displayed … … 176 177 #: Fieldnames considered by this exporter 177 178 fields = tuple(sorted(iface_names( 178 IStudentStudyLevel) + ['level'])) + ('student_id', 'number_of_tickets') 179 IStudentStudyLevel) + ['level'])) + ( 180 'student_id', 'number_of_tickets','certcode') 179 181 180 182 #: The title under which this exporter will be displayed … … 209 211 fields = tuple(sorted(iface_names(ICourseTicket) + 210 212 ['level', 'code', 'title', 'credits', 211 'passmark', 'semester', 'fcode', 'dcode'])) + ('student_id', )213 'passmark', 'semester', 'fcode', 'dcode'])) + ('student_id', 'certcode') 212 214 213 215 #: The title under which this exporter will be displayed -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r9235 r9253 429 429 level = Attribute('The level code') 430 430 number_of_tickets = Attribute('Number of tickets contained in this level') 431 certcode = Attribute('The certificate code of the study course') 431 432 432 433 level_session = schema.Choice( … … 470 471 fcode = Attribute('faculty code of the original course') 471 472 dcode = Attribute('department code of the original course') 473 certcode = Attribute('certificate code of the study course') 472 474 473 475 mandatory = schema.Bool( -
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r9235 r9253 43 43 try: 44 44 return self.__parent__.__parent__ 45 except AttributeError: 46 return None 47 48 @property 49 def certcode(self): 50 try: 51 return self.__parent__.certificate.code 45 52 except AttributeError: 46 53 return None … … 124 131 return None 125 132 133 @property 134 def certcode(self): 135 try: 136 return self.__parent__.__parent__.certificate.code 137 except AttributeError: 138 return None 139 126 140 def writeLogMessage(self, view, message): 127 141 return self.__parent__.__parent__.__parent__.writeLogMessage(view, message) -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9235 r9253 45 45 'firstname,lastname,matric_number,middlename,nationality,' 46 46 'perm_address,phone,reg_number,sex,student_id,suspended,password,' 47 'state,history,certcode \r\n'47 'state,history,certcode,is_postgrad,current_level,current_session\r\n' 48 48 49 49 'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,' … … 65 65 'firstname,lastname,matric_number,middlename,nationality,' 66 66 'perm_address,phone,reg_number,sex,student_id,suspended,password,' 67 'state,history,certcode \r\n'67 'state,history,certcode,is_postgrad,current_level,current_session\r\n' 68 68 69 69 'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,' … … 84 84 'firstname,lastname,matric_number,middlename,nationality,' 85 85 'perm_address,phone,reg_number,sex,student_id,suspended,password,' 86 'state,history,certcode \r\n'86 'state,history,certcode,is_postgrad,current_level,current_session\r\n' 87 87 88 88 'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,' … … 210 210 result, 211 211 'level,level_session,level_verdict,validated_by,validation_date,' 212 'student_id,number_of_tickets \r\n'213 ',,0,,,,0 \r\n'212 'student_id,number_of_tickets,certcode\r\n' 213 ',,0,,,,0,\r\n' 214 214 ) 215 215 return … … 227 227 result, 228 228 'level,level_session,level_verdict,validated_by,validation_date,' 229 'student_id,number_of_tickets \r\n'230 '100,2012,A,,,A111111,1 \r\n'229 'student_id,number_of_tickets,certcode\r\n' 230 '100,2012,A,,,A111111,1,CERT1\r\n' 231 231 ) 232 232 return … … 242 242 result, 243 243 'level,level_session,level_verdict,validated_by,validation_date,' 244 'student_id,number_of_tickets \r\n'245 '100,2012,A,,,A111111,1 \r\n'244 'student_id,number_of_tickets,certcode\r\n' 245 '100,2012,A,,,A111111,1,CERT1\r\n' 246 246 ) 247 247 return … … 256 256 result, 257 257 'level,level_session,level_verdict,validated_by,validation_date,' 258 'student_id,number_of_tickets \r\n'259 '100,2012,A,,,A111111,1 \r\n'258 'student_id,number_of_tickets,certcode\r\n' 259 '100,2012,A,,,A111111,1,CERT1\r\n' 260 260 ) 261 261 return … … 292 292 result, 293 293 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 294 'passmark,score,semester,title,student_id \r\n'295 '0,0,,,,,,0,,0,,, \r\n'294 'passmark,score,semester,title,student_id,certcode\r\n' 295 '0,0,,,,,,0,,0,,,,\r\n' 296 296 ) 297 297 return … … 310 310 result, 311 311 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 312 'passmark,score,semester,title,student_id \r\n'313 '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111 \r\n'312 'passmark,score,semester,title,student_id,certcode\r\n' 313 '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111,CERT1\r\n' 314 314 ) 315 315 return … … 325 325 result, 326 326 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 327 'passmark,score,semester,title,student_id \r\n'328 '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111 \r\n'327 'passmark,score,semester,title,student_id,certcode\r\n' 328 '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111,CERT1\r\n' 329 329 ) 330 330 return … … 339 339 result, 340 340 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 341 'passmark,score,semester,title,student_id \r\n'342 '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111 \r\n'341 'passmark,score,semester,title,student_id,certcode\r\n' 342 '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111,CERT1\r\n' 343 343 ) 344 344 return
Note: See TracChangeset for help on using the changeset viewer.