Ignore:
Timestamp:
29 Jul 2010, 07:55:47 (14 years ago)
Author:
uli
Message:

Use new function from util.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/browser.py

    r5320 r5325  
    2929from waeup.sirp.interfaces import IWAeUPObject
    3030from waeup.sirp.jambtables import JAMBDataTable
     31from waeup.sirp.jambtables.util import get_applicant_data
    3132from waeup.sirp.jambtables.interfaces import IApplicant, IApplicantContainer
    3233
     
    176177        We expect a JAMB registration number and an access code in
    177178        format ``PUDE-XXX-XXXXXXXXXX``.
     179
     180        See
     181        :func:`waeup.sirp.jambtables.util.get_applicant_data`
     182        for details.
    178183        """
    179         site = grok.getSite()
    180         if reg_no not in site['applications'].keys():
    181             return None
    182         applicant_data = site['applications'][reg_no]
    183         entries = site['accesscodes'].search(ac, 'pin')
    184         if len(entries) != 1:
    185             # XXX: If entries > 1 then we have a problem!
    186             return None
    187         return (applicant_data, entries[0])
     184        return get_applicant_data(reg_no, ac)
Note: See TracChangeset for help on using the changeset viewer.