- Timestamp:
- 26 May 2011, 06:58:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6196 r6198 89 89 grok.context(IApplicantsRoot) 90 90 grok.view(ApplicantsRootPage) 91 grok.require('waeup.manage University')91 grok.require('waeup.manageApplications') 92 92 text = 'Manage application section' 93 93 … … 99 99 label = 'Manage application section' 100 100 pnav = 3 101 grok.require('waeup.manage University')101 grok.require('waeup.manageApplications') 102 102 taboneactions = ['Add applicants container', 'Remove selected','Cancel'] 103 103 tabtwoactions1 = ['Remove selected local roles'] … … 164 164 class ApplicantsContainerAddFormPage(WAeUPAddFormPage): 165 165 grok.context(IApplicantsRoot) 166 grok.require('waeup.manage University')166 grok.require('waeup.manageApplications') 167 167 grok.name('add') 168 168 grok.template('applicantscontaineraddpage') … … 236 236 grok.context(IWAeUPObject) 237 237 grok.order(3) 238 grok.require('waeup.manage University')238 grok.require('waeup.manageApplications') 239 239 grok.template('primarynavtab') 240 240 … … 271 271 grok.context(IApplicantsContainer) 272 272 grok.view(ApplicantsContainerPage) 273 grok.require('waeup.manageApplications') 273 274 text = 'Manage applicants container' 274 275 … … 286 287 form_fields['startdate'].custom_widget = FriendlyDateWidget('le') 287 288 form_fields['enddate'].custom_widget = FriendlyDateWidget('le') 288 grok.require('waeup.manage University')289 grok.require('waeup.manageApplications') 289 290 290 291 @property … … 426 427 applicant_object = get_applicant_data(access_code) 427 428 url = absoluteURL(applicant_object, self.request) 428 return u'<div class="portlet"><a href="%s ">%s</a></div>' % (429 return u'<div class="portlet"><a href="%s/edit">%s</a></div>' % ( 429 430 url,access_code) 430 431 return '' … … 433 434 grok.context(IApplicant) 434 435 grok.name('index') 435 grok.require('waeup. viewApplication')436 grok.require('waeup.handleApplication') 436 437 form_fields = grok.AutoFields(IApplicant).omit('locked') 437 438 #form_fields['fst_sit_results'].custom_widget = list_results_display_widget … … 450 451 return '%s Application Record' % container_title 451 452 453 class ApplicantsManageActionButton(ManageActionButton): 454 grok.context(IApplicant) 455 grok.view(DisplayApplicant) 456 grok.require('waeup.manageApplications') 457 text = 'Edit application record' 458 target = 'edit_full' 459 452 460 class EditApplicantFull(WAeUPEditFormPage): 453 461 """A full edit view for applicant data. … … 455 463 grok.context(IApplicant) 456 464 grok.name('edit_full') 457 grok.require('waeup. editFullApplication')465 grok.require('waeup.manageApplications') 458 466 form_fields = grok.AutoFields(IApplicant) #.omit('locked') 459 467 form_fields['passport'].custom_widget = EncodingImageFileWidget … … 488 496 grok.context(IApplicantEdit) 489 497 grok.name('edit') 490 grok.require('waeup. editApplication')498 grok.require('waeup.handleApplication') 491 499 form_fields = grok.AutoFields(IApplicantEdit).omit('locked') 492 500 form_fields['passport'].custom_widget = EncodingImageFileWidget … … 501 509 def update(self): 502 510 if self.context.locked: 503 self. emitLockMessage()511 self.redirect(self.url(self.context)) 504 512 return 505 513 datepicker.need() # Enable jQuery datepicker in date fields.
Note: See TracChangeset for help on using the changeset viewer.