Changeset 5451 for main/waeup.sirp/trunk


Ignore:
Timestamp:
18 Aug 2010, 12:18:41 (14 years ago)
Author:
uli
Message:

Rename argument and explain better, what's going on here.

File:
1 edited

Legend:

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

    r5450 r5451  
    4646    return (applicant_data, entries[0])
    4747
    48 def application_exists(access_code):
    49     """Check whether an application for the given access code already exists.
     48def application_exists(identifier):
     49    """Check whether an application for the given identifier already
     50       exists.
    5051
     52       `identifier` can be an access code or a JAMB registration
     53       number. For JAMB screened applicants we use the JAMB
     54       registration number as key, for other applicants we use the
     55       access code.
    5156    """
    5257    site = grok.getSite()
    53     if access_code in site['applications'].keys():
     58    if identifier in site['applications'].keys():
    5459        return True
    5560    return False
Note: See TracChangeset for help on using the changeset viewer.