Ignore:
Timestamp:
18 Dec 2011, 11:20:19 (13 years ago)
Author:
Henrik Bettermann
Message:

We do no longer need get_applicant_data.

File:
1 edited

Legend:

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

    r7321 r7374  
    102102        return
    103103
    104 def get_applicant_data(identifier):
    105     """Get applicant data associated with `identifier`.
    106 
    107     Returns the applicant object if successful and ``None`` else.
    108 
    109     As `identifier` we expect an access code in format
    110     like ``PREFIX-XXX-YYYYYYYY`` where ``PREFIX`` is something like
    111     ``APP`` or ``PUDE``, ``XXX`` the access code series and
    112     ``YYYYYYYYYY`` the real accesscode number.
    113 
    114     This function requires a fully blown setup as it does catalog
    115     lookups for finding applicants.
    116     """
    117     query = getUtility(IQuery)
    118     results = list(query.searchResults(
    119             Eq(('applicants_catalog', 'access_code'), identifier)
    120             ))
    121     if len(results) == 0:
    122         return None
    123     return results[0]
    124 
    125104def application_exists(identifier):
    126105    """Check whether an application for the given identifier already
Note: See TracChangeset for help on using the changeset viewer.