Changeset 6383 for main/waeup.sirp/trunk/src
- Timestamp:
- 16 Jun 2011, 20:38:36 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py
r6380 r6383 468 468 """ 469 469 ac = get_access_code(access_code) 470 info = IWorkflowInfo(ac) 471 return _fire_transition(info, 'use') 470 if ac: 471 info = IWorkflowInfo(ac) 472 return _fire_transition(info, 'use') 473 else: 474 False 472 475 473 476 def disable_accesscode(access_code): -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6377 r6383 478 478 ac_number = self.request.form.get('form.ac_number', None) 479 479 pin = '%s-%s-%s' % (self.ac_prefix,ac_series,ac_number) 480 if pin not in self.context.keys(): 480 if not invalidate_accesscode(pin): 481 self.flash('%s is not a valid access code.' % pin) 482 self.redirect(self.url(self.context, '@@manage')+'#tab-2') 483 return 484 else: 481 485 # Create applicant record 482 486 applicant = Applicant() … … 647 651 return pdf.getpdfdata() 648 652 649 class Applicant sManageActionButton(ManageActionButton):653 class ApplicantManageActionButton(ManageActionButton): 650 654 grok.context(IApplicant) 651 655 grok.view(DisplayApplicant) 652 656 grok.require('waeup.manageApplications') 653 text = ' Editapplication record'657 text = 'Manage application record' 654 658 target = 'edit_full' 655 659 … … 779 783 class ApplicantViewActionButton(ManageActionButton): 780 784 grok.context(IApplicant) 781 grok.view(EditApplicant Student)782 grok.require('waeup.handleApplication')785 grok.view(EditApplicantFull) 786 icon = 'actionicon_view.png' 783 787 text = 'View application record' 784 788 target = 'index' -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt
r6345 r6383 89 89 </tr> 90 90 </tbody> 91 </table> 91 </table><br /><br /> 92 92 <div id="actionsView"> 93 93 <span class="actionButtons" tal:condition="view/availableActions">
Note: See TracChangeset for help on using the changeset viewer.