Changeset 17561 for main/kofacustom.unidel/trunk/src
- Timestamp:
- 27 Aug 2023, 13:01:06 (16 months ago)
- Location:
- main/kofacustom.unidel/trunk/src/kofacustom/unidel/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py
r17556 r17561 240 240 241 241 grok.name('examclearance_slip.pdf') 242 grok.require('waeup.manageStudent') 242 243 omit_fields = ( 243 244 'suspended', … … 257 258 form_fields = None 258 259 259 note = ''' 260 @property 261 def note(self): 262 return ''' 260 263 261 264 262 265 263 You have been cleared to write second semester examination .264 ''' 266 You have been cleared to write second semester examination for %s/%s session. 267 ''' % (self.context.current_session, self.context.current_session + 1) 265 268 266 269 def update(self): -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/tests/test_browser.py
r17554 r17561 21 21 from StringIO import StringIO 22 22 from hurry.workflow.interfaces import IWorkflowState, IWorkflowInfo 23 from mechanize imporLinkNotFoundErrort 23 24 from zope.securitypolicy.interfaces import IPrincipalRoleManager 24 25 from zope.component.hooks import setSite, clearSite … … 54 55 '...You logged in...', self.browser.contents) 55 56 self.browser.getLink("Base Data").click() 57 self.assertRaises( 58 LinkNotFoundError, 59 self.browser.getLink, 'Download examination clearance slip') 60 #self.browser.getLink("Download examination clearance slip").click() 61 # Unidel changed it's mind 62 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 63 self.browser.getLink("Base Data").click() 56 64 self.browser.getLink("Download examination clearance slip").click() 57 65 self.assertEqual(self.browser.headers['Status'], '200 Ok') -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/viewlets.py
r17554 r17561 34 34 grok.context(ICustomStudent) 35 35 grok.view(StudentBaseDisplayFormPage) 36 grok.require('waeup. viewStudent')36 grok.require('waeup.manageStudent') 37 37 text = _('Download examination clearance slip') 38 38 target = 'examclearance_slip.pdf'
Note: See TracChangeset for help on using the changeset viewer.