Changeset 6469 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 23 Jun 2011, 12:16:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6465 r6469 40 40 from reportlab.platypus.tables import TableStyle 41 41 42 from waeup.sirp.accesscodes import invalidate_accesscode 42 from waeup.sirp.accesscodes import invalidate_accesscode, get_access_code 43 from waeup.sirp.accesscodes.workflow import USED 43 44 from waeup.sirp.browser import ( 44 45 WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage) … … 425 426 426 427 # Mark pin as used (this also fires a pin related transition) 427 comment = u"Invalidated by applicant" 428 invalidate_accesscode(pin, comment) 428 if get_access_code(pin).status == USED: 429 pass 430 else: 431 comment = u"Invalidated by applicant" 432 # Here we know that the ac is in state initialized so we do not 433 # expect an exception 434 invalidate_accesscode(pin, comment) 429 435 430 436 if not pin in self.context.keys():
Note: See TracChangeset for help on using the changeset viewer.