Changeset 9235 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 26 Sep 2012, 14:59:20 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r8971 r9235 176 176 #: Fieldnames considered by this exporter 177 177 fields = tuple(sorted(iface_names( 178 IStudentStudyLevel) + ['level'])) + ('student_id', )178 IStudentStudyLevel) + ['level'])) + ('student_id', 'number_of_tickets') 179 179 180 180 #: The title under which this exporter will be displayed -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r9217 r9235 428 428 """ 429 429 level = Attribute('The level code') 430 number_of_tickets = Attribute('Number of tickets contained in this level') 430 431 431 432 level_session = schema.Choice( -
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r9161 r9235 45 45 except AttributeError: 46 46 return None 47 48 @property 49 def number_of_tickets(self): 50 return len(self) 47 51 48 52 def writeLogMessage(self, view, message): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9218 r9235 1291 1291 self.browser.contents) 1292 1292 self.browser.getControl("Create course list now").click() 1293 # A level with one course ticket was created 1294 self.assertEqual(self.student['studycourse']['100'].number_of_tickets, 1) 1293 1295 self.browser.getLink("100").click() 1294 1296 self.browser.getLink("Edit course list").click() -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9161 r9235 210 210 result, 211 211 'level,level_session,level_verdict,validated_by,validation_date,' 212 'student_id \r\n'213 ',,0,,, \r\n'212 'student_id,number_of_tickets\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 \r\n'230 '100,2012,A,,,A111111 \r\n'229 'student_id,number_of_tickets\r\n' 230 '100,2012,A,,,A111111,1\r\n' 231 231 ) 232 232 return … … 242 242 result, 243 243 'level,level_session,level_verdict,validated_by,validation_date,' 244 'student_id \r\n'245 '100,2012,A,,,A111111 \r\n'244 'student_id,number_of_tickets\r\n' 245 '100,2012,A,,,A111111,1\r\n' 246 246 ) 247 247 return … … 256 256 result, 257 257 'level,level_session,level_verdict,validated_by,validation_date,' 258 'student_id \r\n'259 '100,2012,A,,,A111111 \r\n'258 'student_id,number_of_tickets\r\n' 259 '100,2012,A,,,A111111,1\r\n' 260 260 ) 261 261 return
Note: See TracChangeset for help on using the changeset viewer.