Ignore:
Timestamp:
11 Apr 2012, 07:54:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Add more fields to application and clearance forms (work in progress).

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r8071 r8101  
    2626from waeup.kofa.interfaces import SimpleKofaVocabulary
    2727from waeup.kofa.students.vocabularies import nats_vocab
    28 from waeup.uniben.interfaces import lgas_vocab
     28from waeup.uniben.interfaces import (
     29    lgas_vocab, high_qual, high_grade, exam_types)
    2930from waeup.uniben.interfaces import MessageFactory as _
    30 
    31 high_qual = SimpleKofaVocabulary(
    32     ('National Certificate of Education','nce'),
    33     ('Pre Degree Programme','pre'),
    34     ('Diploma Programme','dip'),
    35     ('Ordinary National Diploma','ond'),
    36     ('Bachelors Degree','bd'),
    37     ('Masters Degree','md'),
    38     ('Professional Qualification','pq'),
    39     ('Other Certification','oc'),
    40     ('Higher National Diploma','hnd'),
    41     ('NCE AL OTH','nce_al_oth'),
    42     ('National Defence Academy','nda'),
    43     ('Awaiting Results','a_rslt'),
    44     ('RMC','rmc'),
    45     )
    46 
    47 high_grade = SimpleKofaVocabulary(
    48     ('Upper Credit','upper_credit'),
    49     ('Distinction','distinction'),
    50     ('Credit','credit'),
    51     ('Merit','merit'),
    52     ('Lower Credit','lower_credit'),
    53     ('First Class','first_class'),
    54     ('Second Class Upper','second_class_upper'),
    55     ('Second Class Lower','second_class_lower'),
    56     ('Third Class','third_class'),
    57     ('Pass','pass'),
    58     ('Awaiting Results','a_rslt'),
    59     ('A Levels','al'),
    60     )
    61 
    62 exam_types = SimpleKofaVocabulary(
    63     ('SSCE','ssce'),
    64     ('WAEC','waec'),
    65     ('GCE O\' LEVEL','gce_o_level'),
    66     ('TC II','tc_ii'),
    67     ('RSA','rsa'),
    68     ('NABTEB','nabteb'),
    69     ('NECO','neco'),
    70     ('ACE','ace'),
    71     ('GCE A\' LEVEL','gce_a_level'),
    72     ('IGCSE','igcse'),
    73     )
    7431
    7532class IUGApplicant(IApplicantBaseData):
     
    162119        readonly = False,
    163120        vocabulary = exam_types,
     121        )
     122    #presently = schema.Bool(
     123    #    title = _(u'Attending'),
     124    #    required = False,
     125    #    readonly = False,
     126    #    )
     127    presently_inst = schema.TextLine(
     128        title = _(u'If yes, name of institution'),
     129        required = False,
     130        readonly = False,
     131        )
     132    nysc_year = schema.Int(
     133        title = _(u'Nysc Year'),
     134        required = False,
     135        readonly = False,
     136        )
     137    nysc_lga = schema.Choice(
     138        source = lgas_vocab,
     139        title = _(u'Nysc Location'),
     140        required = False,
    164141        )
    165142    employer = schema.TextLine(
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r8064 r8101  
    4848        'form.presently': _(u'Course or Programme Presently Attending'),
    4949        'form.nysc_year': _(u'NYSC Information'),
    50         'form.employer': _(u'Employer History'),
     50        'form.employer': _(u'Employment History'),
    5151        'form.notice': _(u'Application Process Information'),
    5252        'form.pp_school': _(u'Post Primary School Qualification'),
     53        'form.presently_inst': _(u'Presently attending a course or programme'),
    5354        }
  • main/waeup.uniben/trunk/src/waeup/uniben/interfaces.py

    r8071 r8101  
    2424
    2525_ = MessageFactory = zope.i18nmessageid.MessageFactory('waeup.uniben')
     26
     27high_qual = SimpleKofaVocabulary(
     28    ('National Certificate of Education','nce'),
     29    ('Pre Degree Programme','pre'),
     30    ('Diploma Programme','dip'),
     31    ('Ordinary National Diploma','ond'),
     32    ('Bachelors Degree','bd'),
     33    ('Masters Degree','md'),
     34    ('Professional Qualification','pq'),
     35    ('Other Certification','oc'),
     36    ('Higher National Diploma','hnd'),
     37    ('NCE AL OTH','nce_al_oth'),
     38    ('National Defence Academy','nda'),
     39    ('Awaiting Results','a_rslt'),
     40    ('RMC','rmc'),
     41    )
     42
     43high_grade = SimpleKofaVocabulary(
     44    ('Upper Credit','upper_credit'),
     45    ('Distinction','distinction'),
     46    ('Credit','credit'),
     47    ('Merit','merit'),
     48    ('Lower Credit','lower_credit'),
     49    ('First Class','first_class'),
     50    ('Second Class Upper','second_class_upper'),
     51    ('Second Class Lower','second_class_lower'),
     52    ('Third Class','third_class'),
     53    ('Pass','pass'),
     54    ('Awaiting Results','a_rslt'),
     55    ('A Levels','al'),
     56    )
     57
     58exam_types = SimpleKofaVocabulary(
     59    ('SSCE','ssce'),
     60    ('WAEC','waec'),
     61    ('GCE O\' LEVEL','gce_o_level'),
     62    ('TC II','tc_ii'),
     63    ('RSA','rsa'),
     64    ('NABTEB','nabteb'),
     65    ('NECO','neco'),
     66    ('ACE','ace'),
     67    ('GCE A\' LEVEL','gce_a_level'),
     68    ('IGCSE','igcse'),
     69    )
     70
    2671
    2772lgas_vocab = SimpleKofaVocabulary(
  • main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py

    r8071 r8101  
    1919from waeup.kofa.schema import TextLineChoice
    2020from waeup.kofa.interfaces import SimpleKofaVocabulary
     21from waeup.kofa.schoolgrades import ResultEntryField
    2122from waeup.kofa.students.vocabularies import nats_vocab
    2223from waeup.kofa.students.interfaces import (
     
    2627from waeup.kofa.students.vocabularies import (
    2728    nats_vocab, contextual_reg_num_source)
    28 from waeup.uniben.interfaces import lgas_vocab
     29from waeup.uniben.interfaces import (
     30    lgas_vocab, high_qual, high_grade, exam_types)
    2931from waeup.uniben.interfaces import MessageFactory as _
    3032
     
    7678        )
    7779
     80    fst_sit_fname = schema.TextLine(
     81        title = _(u'Full Name'),
     82        required = False,
     83        readonly = False,
     84        )
     85    fst_sit_no = schema.TextLine(
     86        title = _(u'Exam Number'),
     87        required = False,
     88        readonly = False,
     89        )
     90
     91    fst_sit_date = schema.Date(
     92        title = _(u'Exam Date'),
     93        required = False,
     94        readonly = False,
     95        )
     96
     97    fst_sit_type = schema.Choice(
     98        title = _(u'Exam Type'),
     99        required = False,
     100        readonly = False,
     101        vocabulary = exam_types,
     102        )
     103
     104    fst_sit_results = schema.List(
     105        title = _(u'Exam Results'),
     106        value_type = ResultEntryField(),
     107        required = False,
     108        readonly = False,
     109        default = [],
     110        )
     111
     112    scd_sit_fname = schema.TextLine(
     113        title = _(u'Full Name'),
     114        required = False,
     115        readonly = False,
     116        )
     117    scd_sit_no = schema.TextLine(
     118        title = _(u'Exam Number'),
     119        required = False,
     120        readonly = False,
     121        )
     122
     123    scd_sit_date = schema.Date(
     124        title = _(u'Exam Date'),
     125        required = False,
     126        readonly = False,
     127        )
     128
     129    scd_sit_type = schema.Choice(
     130        title = _(u'Exam Type'),
     131        required = False,
     132        readonly = False,
     133        vocabulary = exam_types,
     134        )
     135
     136    scd_sit_results = schema.List(
     137        title = _(u'Exam Results'),
     138        value_type = ResultEntryField(),
     139        required = False,
     140        readonly = False,
     141        default = [],
     142        )
     143
     144    alr_fname = schema.TextLine(
     145        title = _(u'Full Name'),
     146        required = False,
     147        readonly = False,
     148        )
     149    alr_no = schema.TextLine(
     150        title = _(u'Exam Number'),
     151        required = False,
     152        readonly = False,
     153        )
     154
     155    alr_date = schema.Date(
     156        title = _(u'Exam Date'),
     157        required = False,
     158        readonly = False,
     159        )
     160
     161    alr_results = schema.List(
     162        title = _(u'Exam Results'),
     163        value_type = ResultEntryField(),
     164        required = False,
     165        readonly = False,
     166        default = [],
     167        )
     168
     169    hq_type = schema.Choice(
     170        title = _(u'Qualification Obtained'),
     171        required = False,
     172        readonly = False,
     173        vocabulary = high_qual,
     174        )
     175
     176    hq_matric_no = schema.TextLine(
     177        title = _(u'Former Matric Number'),
     178        required = False,
     179        readonly = False,
     180        )
     181
     182    hq_degree = schema.Choice(
     183        title = _(u'Class of Degree'),
     184        required = False,
     185        readonly = False,
     186        vocabulary = high_grade,
     187        )
     188
     189    hq_school = schema.TextLine(
     190        title = _(u'Institution Attended'),
     191        required = False,
     192        readonly = False,
     193        )
     194
     195    hq_session = schema.TextLine(
     196        title = _(u'Years Attended'),
     197        required = False,
     198        readonly = False,
     199        )
     200
     201    hq_disc = schema.TextLine(
     202        title = _(u'Discipline'),
     203        required = False,
     204        readonly = False,
     205        )
     206
     207
    78208class IPGStudentClearance(IUGStudentClearance):
    79209    """Representation of pg student clearance data.
     
    81211    """
    82212
     213    hq2_type = schema.Choice(
     214        title = _(u'Qualification Obtained'),
     215        required = False,
     216        readonly = False,
     217        vocabulary = high_qual,
     218        )
     219
     220    hq2_matric_no = schema.TextLine(
     221        title = _(u'Former Matric Number'),
     222        required = False,
     223        readonly = False,
     224        )
     225
     226    hq2_degree = schema.Choice(
     227        title = _(u'Class of Degree'),
     228        required = False,
     229        readonly = False,
     230        vocabulary = high_grade,
     231        )
     232
     233    hq2_school = schema.TextLine(
     234        title = _(u'Institution Attended'),
     235        required = False,
     236        readonly = False,
     237        )
     238
     239    hq2_session = schema.TextLine(
     240        title = _(u'Years Attended'),
     241        required = False,
     242        readonly = False,
     243        )
     244
     245    hq2_disc = schema.TextLine(
     246        title = _(u'Discipline'),
     247        required = False,
     248        readonly = False,
     249        )
     250
     251    nysc_year = schema.Int(
     252        title = _(u'Nysc Year'),
     253        required = False,
     254        readonly = False,
     255        )
     256
     257    nysc_lga = schema.Choice(
     258        source = lgas_vocab,
     259        title = _(u'Nysc Location'),
     260        required = False,
     261        )
     262
     263    employer = schema.TextLine(
     264        title = _(u'Employer'),
     265        required = False,
     266        readonly = False,
     267        )
     268
     269    emp_position = schema.TextLine(
     270        title = _(u'Employer Position'),
     271        required = False,
     272        readonly = False,
     273        )
     274
     275    emp_start = schema.Date(
     276        title = _(u'Start Date'),
     277        required = False,
     278        readonly = False,
     279        )
     280
     281    emp_end = schema.Date(
     282        title = _(u'End Date'),
     283        required = False,
     284        readonly = False,
     285        )
     286
     287    emp_reason = schema.TextLine(
     288        title = _(u'Reason for Leaving'),
     289        required = False,
     290        readonly = False,
     291        )
     292
     293    employer2 = schema.TextLine(
     294        title = _(u'2nd Employer'),
     295        required = False,
     296        readonly = False,
     297        )
     298
     299    emp2_position = schema.TextLine(
     300        title = _(u'2nd Employer Position'),
     301        required = False,
     302        readonly = False,
     303        )
     304
     305    emp2_start = schema.Date(
     306        title = _(u'Start Date'),
     307        required = False,
     308        readonly = False,
     309        )
     310    emp2_end = schema.Date(
     311        title = _(u'End Date'),
     312        required = False,
     313        readonly = False,
     314        )
     315
     316    emp2_reason = schema.TextLine(
     317        title = _(u'Reason for Leaving'),
     318        required = False,
     319        readonly = False,
     320        )
     321
     322
    83323class IStudent(IStudentBase,IUGStudentClearance,IPGStudentClearance,IStudentPersonal):
    84324    """Representation of a student.
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r8020 r8101  
    121121        'A8': 'Merit',
    122122        }
     123
     124    SEPARATORS_DICT = {
     125        'form.fst_sit_fname': _(u'First Sitting Recod'),
     126        'form.scd_sit_fname': _(u'Second Sitting Record'),
     127        'form.alr_fname': _(u'Advanced Level Record'),
     128        'form.hq_type': _(u'Higher Education Record'),
     129        'form.hq2_type': _(u'Second Higher Education Record'),
     130        'form.nysc_year': _(u'NYSC Information'),
     131        'form.employer': _(u'Employment History'),
     132        }
Note: See TracChangeset for help on using the changeset viewer.