Ignore:
Timestamp:
16 Jun 2011, 20:38:36 (14 years ago)
Author:
Henrik Bettermann
Message:

accesscodes.invalidate_accesscode(): return false if ac doesn't exist

Use this in browser.py to flash message in addApplicant if ac doesn't exist.

Use a view icon for view tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py

    r6380 r6383  
    468468    """
    469469    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
    472475
    473476def disable_accesscode(access_code):
Note: See TracChangeset for help on using the changeset viewer.