Changeset 6587 for main/waeup.sirp/trunk/src
- Timestamp:
- 10 Aug 2011, 11:02:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py
r6553 r6587 460 460 batch_id, ac_id = access_code.rsplit('-', 1) 461 461 except ValueError: 462 raise ValueError( 463 'Invalid access code format: %s (use: APP-N-XXXXXXXX)' % ( 464 access_code,)) 462 return False 465 463 try: 466 464 ac = grok.getSite()['accesscodes'][batch_id].getAccessCode(access_code) 467 except TypeError: 468 raise KeyError( 469 'No site available for looking up accesscodes') 465 except: 466 return False 470 467 info = IWorkflowInfo(ac) 471 468 if toward:
Note: See TracChangeset for help on using the changeset viewer.