Changeset 9740 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 30 Nov 2012, 07:01:34 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py
r9637 r9740 445 445 icon = 'actionicon_student.png' 446 446 text = _('Show students') 447 target = 's howdepstudents'447 target = 'students' 448 448 449 449 class ManageCourseActionButton(ManageActionButton): … … 469 469 icon = 'actionicon_student.png' 470 470 text = _('Show students') 471 target = 's howcoursestudents'471 target = 'students' 472 472 473 473 class ShowCertificateStudentsActionButton(ManageActionButton): … … 479 479 icon = 'actionicon_student.png' 480 480 text = _('Show students') 481 target = 's howcertstudents'481 target = 'students' 482 482 483 483 class ManageCertificateCourseActionButton(ManageActionButton): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9733 r9740 1306 1306 # ... and view the list of students 1307 1307 self.browser.getLink("Show students").click() 1308 self.browser.getControl(name="session").value = ['2004'] 1309 self.browser.getControl(name="level").value = ['200'] 1310 self.browser.getControl("Show").click() 1311 self.assertFalse(self.student_id in self.browser.contents) 1312 self.browser.getControl(name="session").value = ['2004'] 1313 self.browser.getControl(name="level").value = ['100'] 1314 self.browser.getControl("Show").click() 1308 1315 self.assertTrue(self.student_id in self.browser.contents) 1309 1316 # The comment is indicated by 'yes' … … 1463 1470 # and view the list of students 1464 1471 self.browser.getLink("Show students").click() 1465 self.assertTrue('<th>Fullname</th>' in self.browser.contents) 1472 self.browser.getControl(name="session").value = ['2004'] 1473 self.browser.getControl(name="level").value = ['100'] 1474 self.browser.getControl("Show").click() 1475 self.assertTrue('No student found.' in self.browser.contents) 1466 1476 # No student in course so far 1467 1477 self.assertFalse(self.student_id in self.browser.contents) 1468 1478 studylevel = createObject(u'waeup.StudentStudyLevel') 1469 1479 studylevel.level = 100 1480 studylevel.level_session = 2004 1470 1481 self.student['studycourse'].addStudentStudyLevel( 1471 1482 self.certificate, studylevel) 1472 1483 # Now the student has registered the course and can 1473 1484 # be seen by the lecturer. 1474 self.browser.open("http://localhost/app/faculties/fac1/dep1/courses/COURSE1/showcoursestudents") 1485 self.browser.open("http://localhost/app/faculties/fac1/dep1/courses/COURSE1/students") 1486 self.browser.getControl(name="session").value = ['2004'] 1487 self.browser.getControl(name="level").value = ['100'] 1488 self.browser.getControl("Show").click() 1475 1489 self.assertTrue(self.student_id in self.browser.contents) 1476 1490 # XXX: So far the lecturer can neither access ths student ...
Note: See TracChangeset for help on using the changeset viewer.