Changeset 5325 for main/waeup.sirp/branches/ulif-fasttables
- Timestamp:
- 29 Jul 2010, 07:55:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/browser.py
r5320 r5325 29 29 from waeup.sirp.interfaces import IWAeUPObject 30 30 from waeup.sirp.jambtables import JAMBDataTable 31 from waeup.sirp.jambtables.util import get_applicant_data 31 32 from waeup.sirp.jambtables.interfaces import IApplicant, IApplicantContainer 32 33 … … 176 177 We expect a JAMB registration number and an access code in 177 178 format ``PUDE-XXX-XXXXXXXXXX``. 179 180 See 181 :func:`waeup.sirp.jambtables.util.get_applicant_data` 182 for details. 178 183 """ 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.