Ignore:
Timestamp:
18 Aug 2010, 11:57:01 (14 years ago)
Author:
uli
Message:

Add helper function that looks for an already existing application for
a given access code.

File:
1 edited

Legend:

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

    r5447 r5450  
    4545    # XXX: Maybe we have to mark reg_no as used here?
    4646    return (applicant_data, entries[0])
     47
     48def application_exists(access_code):
     49    """Check whether an application for the given access code already exists.
     50
     51    """
     52    site = grok.getSite()
     53    if access_code in site['applications'].keys():
     54        return True
     55    return False
Note: See TracChangeset for help on using the changeset viewer.