Changeset 9485 for main/waeup.kofa/trunk
- Timestamp:
- 31 Oct 2012, 16:23:36 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/showstudentspage.pt
r7811 r9485 8 8 <th i18n:translate="">Current Session</th> 9 9 <th i18n:translate="">Current Level</th> 10 <th i18n:translate="">Comment</th> 10 11 </tr> 11 12 </thead> … … 26 27 <td tal:content="item/current_session">SESSION</td> 27 28 <td tal:content="item/current_level">LEVEL</td> 29 <td><span tal:condition="item/comment">yes</span></td> 28 30 </tr> 29 31 </tbody> -
main/waeup.kofa/trunk/src/waeup/kofa/students/catalog.py
r9220 r9485 71 71 self.current_session = current_session 72 72 self.certificate = context['studycourse'].certificate 73 self.comment = getattr(context, 'clearance_comment', None) 73 74 74 75 def search(query=None, searchtype=None, view=None): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9484 r9485 1256 1256 self.assertTrue('Student is in wrong state' 1257 1257 in self.browser.contents) 1258 # The CO can go to his department throug the my_roles page 1258 # The CO can go to his department throug the my_roles page ... 1259 1259 self.browser.open('http://localhost/app/users/mrclear/my_roles') 1260 1260 self.browser.getLink("http://localhost/app/faculties/fac1/dep1").click() 1261 # and view the list of students1261 # ... and view the list of students 1262 1262 self.browser.getLink("Show students").click() 1263 1263 self.assertTrue(self.student_id in self.browser.contents) 1264 1265 1264 # The comment is indicated by 'yes' 1265 self.assertTrue('<td><span>yes</span></td>' in self.browser.contents) 1266 1266 # When a student is cleared the comment is automatically deleted 1267 1267 IWorkflowInfo(self.student).fireTransition('request_clearance') 1268 1268 IWorkflowInfo(self.student).fireTransition('clear') 1269 1269 self.assertEqual(self.student.clearance_comment, None) 1270 1271 1270 1272 1271 def test_handle_courses_by_ca(self):
Note: See TracChangeset for help on using the changeset viewer.