- Timestamp:
- 24 Nov 2011, 09:20:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7166 r7184 234 234 return self.context.access_code 235 235 236 class Applicants Tab(PrimaryNavTab):236 class ApplicantsAuthTab(PrimaryNavTab): 237 237 """Applicants tab in primary navigation. 238 238 """ 239 240 239 grok.context(IWAeUPObject) 241 240 grok.order(3) 242 grok.require('waeup. Public')241 grok.require('waeup.viewApplication') 243 242 grok.template('primarynavtab') 244 245 243 pnav = 3 246 244 tab_title = u'Applicants' … … 249 247 def link_target(self): 250 248 return self.view.application_url('applicants') 249 250 class ApplicantsAnonTab(ApplicantsAuthTab): 251 """Applicants tab in primary navigation. 252 253 Display tab only for anonymous. Authenticated users can call the 254 form from the user navigation bar. 255 """ 256 grok.require('waeup.Anonymous') 257 tab_title = u'Application' 258 259 # Also zope.manager has role Anonymous. 260 # To avoid displaying this tab, uncomment the following. 261 #def tab_title(self): 262 # userid = self.request.principal.id 263 # if userid != 'zope.anybody': 264 # tt = u'' 265 # else: 266 # tt = u'Application' 267 # return tt 251 268 252 269 class ApplicantsContainerPage(WAeUPDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.