Changeset 7201 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 25 Nov 2011, 14:25:43 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py
r7191 r7201 75 75 grok.name('waeup.StudentsClearanceOfficer') 76 76 grok.title(u'Clearance Officer (all students)') 77 grok.permissions('waeup.clearStudent' )77 grok.permissions('waeup.clearStudent','waeup.viewStudent') -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r7189 r7201 659 659 # Create clearance officer 660 660 self.app['users'].addUser('mrclear', 'mrclearsecret') 661 # Clearance officers need to get the StudentsOfficer site role 662 prmglobal = IPrincipalRoleManager(self.app) 663 prmglobal.assignRoleToPrincipal('waeup.StudentsOfficer', 'mrclear') 661 # Clearance officers need not necessarily to get 662 # the StudentsOfficer site role 663 #prmglobal = IPrincipalRoleManager(self.app) 664 #prmglobal.assignRoleToPrincipal('waeup.StudentsOfficer', 'mrclear') 664 665 # Assign local ClearanceOfficer role 665 666 department = self.app['faculties']['fac1']['dep1'] … … 679 680 '...<div>Academics Officer (view only)</div>...', 680 681 self.browser.contents) 681 self.assertMatches(682 '...<div>Students Officer (view only)</div>...',683 self.browser.contents)682 #self.assertMatches( 683 # '...<div>Students Officer (view only)</div>...', 684 # self.browser.contents) 684 685 # But not his local role ... 685 686 self.assertFalse('Clearance Officer' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.