Changeset 9072


Ignore:
Timestamp:
27 Jul 2012, 05:20:39 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove perm_address field.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/applicant.py

    r9071 r9072  
    3232    grok.provides(INigeriaApplicant)
    3333
     34    # Meanwhile perm_address has been removed but the attribute still exists in
     35    # some applicant objects. So we'll leave it until all 2012 students
     36    # have been created.
    3437    create_names = Applicant.create_names + [
    35         'lga', 'nationality', 'perm_address']
     38        'lga', 'nationality', 'perm_address'] 
    3639
    3740# Set all attributes of NigeriaApplicant required in INigeriaApplicant as field
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py

    r9071 r9072  
    9797            for field in UG_OMIT_DISPLAY_FIELDS:
    9898                form_fields = form_fields.omit(field)
    99         form_fields['perm_address'].custom_widget = BytesDisplayWidget
     99        #form_fields['perm_address'].custom_widget = BytesDisplayWidget
    100100        form_fields['notice'].custom_widget = BytesDisplayWidget
    101101        return form_fields
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py

    r9054 r9072  
    3535
    3636# Fields to be omitted in all display forms. course_admitted is
    37 # rendered seperately.
     37# rendered separately.
    3838
    3939OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted',
     
    6464    'email', 'phone',
    6565    'date_of_birth', 'sex',
    66     'nationality', 'lga', 'perm_address',
     66    'nationality', 'lga', #'perm_address',
    6767    'course2', 'screening_venue',
    6868    'screening_date')
     
    8080    'email', 'phone',
    8181    'date_of_birth', 'sex',
    82     'nationality', 'lga', 'perm_address',
     82    'nationality', 'lga', #'perm_address',
    8383    'course2', 'screening_venue',
    8484    'screening_date')
     
    109109        required = False,
    110110        )
    111     perm_address = schema.Text(
    112         title = _(u'Permanent Address'),
    113         required = False,
    114         )
     111    #perm_address = schema.Text(
     112    #    title = _(u'Permanent Address'),
     113    #    required = False,
     114    #    )
    115115    course1 = schema.Choice(
    116116        title = _(u'1st Choice Course of Study'),
     
    221221        required = False,
    222222        )
    223     perm_address = schema.Text(
    224         title = _(u'Permanent Address'),
    225         required = False,
    226         )
     223    #perm_address = schema.Text(
     224    #    title = _(u'Permanent Address'),
     225    #    required = False,
     226    #    )
    227227    course1 = schema.Choice(
    228228        title = _(u'1st Choice Course of Study'),
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py

    r9046 r9072  
    343343            'jamb_score,jamb_subjects,lastname,lga,locked,middlename,'
    344344            'nationality,notice,nysc_lga,'
    345             'nysc_year,password,perm_address,phone,pp_school,presently_inst,'
     345            'nysc_year,password,phone,pp_school,presently_inst,'
    346346            'reg_number,result_uploaded,screening_date,screening_score,screening_venue,sex,'
    347347            'state,student_id,'
     
    350350        self.assertTrue(
    351351            'Application initialized by system\'],,,,,,,,,Tester,,0,M.,,'
    352             '"Some notice\nin lines.",,,any password,,+234-123-12345,,,'
     352            '"Some notice\nin lines.",,,any password,+234-123-12345,,,'
    353353            '123456,,"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,'
    354354            'initialized,,0,dp2011'
     
    368368            'jamb_score','jamb_subjects','lastname','lga','locked','middlename',
    369369            'nationality','notice','nysc_lga',
    370             'nysc_year','password','perm_address','phone','pp_school','presently_inst',
     370            'nysc_year','password','phone','pp_school','presently_inst',
    371371            'reg_number','result_uploaded',
    372372            'screening_date','screening_score','screening_venue','sex',
     
    392392            'jamb_score','jamb_subjects','lastname','lga','locked','middlename',
    393393            'nationality','notice','nysc_lga',
    394             'nysc_year','password','perm_address','phone','pp_school','presently_inst',
     394            'nysc_year','password','phone','pp_school','presently_inst',
    395395            'reg_number','result_uploaded','screening_date','screening_score',
    396396            'screening_venue','sex',
Note: See TracChangeset for help on using the changeset viewer.