- Timestamp:
- 12 Jun 2011, 12:00:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6358 r6359 32 32 33 33 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 34 35 34 from reportlab.pdfgen import canvas 36 35 36 from waeup.sirp.accesscodes import invalidate_accesscode 37 37 from waeup.sirp.browser import ( 38 38 WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage) … … 415 415 return 416 416 pin = self.request.principal.access_code 417 if pin not in self.context.keys(): 418 # Create applicant record 419 applicant = Applicant() 420 applicant.access_code = pin 421 self.context[pin] = applicant 417 if pin in self.context.keys(): 418 self.redirect(self.url(self.context[pin], 'edit')) 419 return 420 421 # Mark pin as used 422 invalidate_accesscode(pin) 423 424 # Create applicant record 425 applicant = Applicant() 426 applicant.access_code = pin 427 self.context[pin] = applicant 428 422 429 # Assign current principal the owner role on created applicant 423 430 # record
Note: See TracChangeset for help on using the changeset viewer.