Changeset 7243 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 1 Dec 2011, 10:11:59 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7240 r7243 234 234 grok.order(3) 235 235 grok.require('waeup.viewApplicationsTab') 236 grok.template('primarynavtab')237 236 pnav = 3 238 237 tab_title = u'Applicants' … … 252 251 253 252 # Also zope.manager has role Anonymous. 254 # To avoid displaying this tab, uncomment the following. 255 #def tab_title(self): 256 # userid = self.request.principal.id 257 # if userid != 'zope.anybody': 258 # tt = u'' 259 # else: 260 # tt = u'Application' 261 # return tt 253 # To avoid displaying this tab, we have to check the principal id too. 254 @property 255 def link_target(self): 256 if self.request.principal.id == 'zope.anybody': 257 return self.view.application_url('applicants') 258 return 262 259 263 260 class MyApplicationDataTab(PrimaryStudentNavTab): … … 266 263 grok.order(3) 267 264 grok.require('waeup.viewMyApplicationDataTab') 268 grok.template('primarynavtab')269 265 pnav = 3 270 266 tab_title = u'My Data'
Note: See TracChangeset for help on using the changeset viewer.