1 | ## |
---|
2 | ## interfaces.py |
---|
3 | ## Login : <uli@pu.smp.net> |
---|
4 | ## Started on Sun Jun 27 11:06:23 2010 Uli Fouquet |
---|
5 | ## $Id$ |
---|
6 | ## |
---|
7 | ## Copyright (C) 2010 Uli Fouquet |
---|
8 | ## This program is free software; you can redistribute it and/or modify |
---|
9 | ## it under the terms of the GNU General Public License as published by |
---|
10 | ## the Free Software Foundation; either version 2 of the License, or |
---|
11 | ## (at your option) any later version. |
---|
12 | ## |
---|
13 | ## This program is distributed in the hope that it will be useful, |
---|
14 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | ## GNU General Public License for more details. |
---|
17 | ## |
---|
18 | ## You should have received a copy of the GNU General Public License |
---|
19 | ## along with this program; if not, write to the Free Software |
---|
20 | ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | ## |
---|
22 | """Interfaces for JAMB data tables and related components. |
---|
23 | """ |
---|
24 | from zope import schema |
---|
25 | from waeup.sirp.interfaces import IWAeUPObject |
---|
26 | from waeup.sirp.applicants.interfaces import IApplicantBaseData |
---|
27 | |
---|
28 | |
---|
29 | class IJAMBDataRoot(IWAeUPObject): |
---|
30 | """A container that holds JAMB data tables. |
---|
31 | """ |
---|
32 | |
---|
33 | class IApplicantPDEImportData(IApplicantBaseData): |
---|
34 | """Data for applicants, that passed PDE screening. |
---|
35 | |
---|
36 | This data set should be suitable for imports from JAMB tables. It |
---|
37 | is also basicall the basic applicant data from |
---|
38 | :class:`IApplicantBaseData` only with the required fields set. |
---|
39 | |
---|
40 | """ |
---|
41 | firstname = schema.TextLine( |
---|
42 | title = u'First Name', |
---|
43 | required = True, |
---|
44 | ) |
---|
45 | middlenames = schema.TextLine( |
---|
46 | title = u'Middle Names', |
---|
47 | required = True, |
---|
48 | ) |
---|
49 | lastname = schema.TextLine( |
---|
50 | title = u'Surname/Full Name', |
---|
51 | required = True, |
---|
52 | ) |
---|
53 | date_of_birth = schema.Date( |
---|
54 | title = u'Date of Birth', |
---|
55 | required = True, |
---|
56 | ) |
---|
57 | jamb_state = schema.TextLine( |
---|
58 | title = u'State (provided by JAMB)', |
---|
59 | required = True, |
---|
60 | ) |
---|
61 | jamb_lga = schema.TextLine( |
---|
62 | title = u'LGA (provided by JAMB)', |
---|
63 | required = True, |
---|
64 | ) |
---|
65 | course1 = schema.TextLine( |
---|
66 | title = u'1st Choice Course of Study', |
---|
67 | required = True, |
---|
68 | ) |
---|
69 | screening_date = schema.Date( |
---|
70 | title = u'Screening Date', |
---|
71 | required = True, |
---|
72 | ) |
---|
73 | screening_type = schema.TextLine( |
---|
74 | # XXX: schould be choice |
---|
75 | title = u'Screening Type', |
---|
76 | required = True, |
---|
77 | ) |
---|
78 | screening_venue = schema.TextLine( |
---|
79 | title = u'Screening Venue', |
---|
80 | required = True, |
---|
81 | ) |
---|
82 | entry_session = schema.TextLine( |
---|
83 | # XXX: should be choice |
---|
84 | # XXX: should have sensible default: upcoming session |
---|
85 | title = u'Entry Session', |
---|
86 | required = True, |
---|
87 | ) |
---|