Changeset 8536


Ignore:
Timestamp:
28 May 2012, 05:26:01 (13 years ago)
Author:
Henrik Bettermann
Message:

See r8535.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
4 edited

Legend:

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

    r8532 r8536  
    4040PUTME_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + (
    4141    'firstname', 'middlename', 'lastname', 'sex',
    42     'course1', 'lga', 'jambscore')
     42    'course1', 'lga', 'jamb_score', 'jamb_subjects')
    4343
    4444PG_OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted', 'password')
     
    8080        required = False,
    8181        )
    82     jambscore = schema.Int(
    83         title = _(u'JAMB Score'),
    84         required = False,
    85         )
    86 
    87 
    88 # More fields
    89 
    90 
     82    jamb_subjects = schema.Text(
     83        title = _(u'Subjects and Scores'),
     84        required = False,
     85        )
     86    jamb_score = schema.Int(
     87        title = _(u'Total Score'),
     88        required = False,
     89        )
    9190    notice = schema.Text(
    9291        title = _(u'Notice'),
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests.py

    r8532 r8536  
    254254            'emp_reason,emp_start,employer,employer2,firstname,history,'
    255255            'hq_degree,hq_disc,hq_matric_no,hq_school,hq_session,hq_type,'
    256             'jambscore,lastname,lga,locked,middlename,nationality,notice,nysc_lga,'
     256            'jamb_score,jamb_subjects,lastname,lga,locked,middlename,'
     257            'nationality,notice,nysc_lga,'
    257258            'nysc_year,password,perm_address,phone,pp_school,presently_inst,'
    258259            'reg_number,screening_score,screening_venue,sex,state,student_id,'
     
    260261            in result)
    261262        self.assertTrue(
    262             'Application initialized by system\'],,,,,,,,Tester,,0,M.,,'
     263            'Application initialized by system\'],,,,,,,,,Tester,,0,M.,,'
    263264            '"Some notice\nin lines.",,,any password,,+234-123-12345,,,'
    264265            '123456,98,Exam Room,f,initialized,,dp2011' in result)
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py

    r8532 r8536  
    5353        'form.nysc_year': _(u'NYSC Information'),
    5454        'form.employer': _(u'Employment History'),
    55         'form.jambscore': _(u'JAMB Data'),
     55        'form.jamb_subjects': _(u'JAMB Data'),
    5656        'form.notice': _(u'Application Process Information'),
    5757        'form.pp_school': _(u'Post Primary School Qualification'),
    5858        'form.presently_inst': _(u'Presently attending a course or programme'),
    5959        }
    60 
    61     def setPaymentDetails(self, container, payment):
    62         """Set the payment data of an applicant.
    63         """
    64         timestamp = "%d" % int(time()*1000)
    65         payment.p_id = "p%s" % timestamp
    66         payment.p_item = container.title
    67         payment.p_session = container.year
    68         payment.p_category = 'application'
    69         # We are using the container specific application fee
    70         # instead of the session configuration application fee.
    71         payment.amount_auth = container.application_fee
    72         return None
  • main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py

    r8527 r8536  
    102102
    103103    application_fee = schema.Float(
    104         title = _(u'Application Fee (ignored)'),
     104        title = _(u'Application Fee (fallback)'),
    105105        default = 0.0,
    106106        required = False,
Note: See TracChangeset for help on using the changeset viewer.