Changeset 12120


Ignore:
Timestamp:
2 Dec 2014, 20:37:44 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename field.

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

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py

    r12107 r12120  
    155155            form_fields = grok.AutoFields(INigeriaPGStudentClearance).omit(
    156156            'clearance_locked', 'nysc_location', 'clr_code', 'officer_comment',
    157             'date_of_invitation')
     157            'physical_clearance_date')
    158158        else:
    159159            form_fields = grok.AutoFields(INigeriaUGStudentClearance).omit(
    160160            'clearance_locked', 'clr_code', 'officer_comment',
    161             'date_of_invitation')
     161            'physical_clearance_date')
    162162        return form_fields
    163163
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/export.py

    r12107 r12120  
    8989
    9090class ClearanceRequestedStudentExporter(StudentExporter):
    91     """Exporter of data used to assign dates of invitation
     91    """Exporter of data used to assign physical clearance dates.
    9292    """
    9393
     
    9595
    9696    fields = ('student_id', 'reg_number', 'display_fullname',
    97               'state', 'current_session', 'history', 'date_of_invitation')
     97              'state', 'current_session', 'history', 'physical_clearance_date')
    9898
    9999    title = _(u'Clearance Invitation Data')
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/interfaces.py

    r12107 r12120  
    6868        )
    6969
    70     date_of_invitation= schema.TextLine(
    71         title = _(u"Date of Invitation"),
     70    physical_clearance_date= schema.TextLine(
     71        title = _(u"Physical Clearance Date"),
    7272        required = False,
    7373        )
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r12109 r12120  
    6666        self.assertMatches(
    6767            'adm_code,alr_date,alr_fname,alr_no,alr_results,clearance_locked,'
    68             'clr_code,date_of_birth,date_of_invitation,def_adm,disabled,email,emp2_end,'
     68            'clr_code,date_of_birth,def_adm,disabled,email,emp2_end,'
    6969            'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,'
    7070            'emp_reason,emp_start,employer,employer2,firstname,former_matric,'
     
    7676            'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,'
    7777            'nysc_lga,nysc_location,nysc_year,officer_comment,'
    78             'perm_address,personal_updated,phone,reg_number,'
     78            'perm_address,personal_updated,phone,physical_clearance_date,reg_number,'
    7979            'religion,scd_sit_date,scd_sit_fname,scd_sit_no,'
    8080            'scd_sit_results,scd_sit_type,sex,student_id,'
    8181            'suspended,suspended_comment,password,state,history,certcode,is_postgrad,'
    8282            'current_level,current_session\r\nmy adm code,,,,'
    83             '"[(\'accounts\', \'A\')]",0,my clr code,1981-02-04#,,,,'
     83            '"[(\'accounts\', \'A\')]",0,my clr code,1981-02-04#,,,'
    8484            'anna@sample.com,,,,,,,,,,,Anna,,,,,"[(\'accounts\', \'A\')]"'
    8585            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,'
    86             '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,,,,,'
     86            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,123,,,,,'
    8787            '"[(\'accounts\', \'A\')]",,f,A111111,0,,,created,'
    8888            '[u\'2012-11-06 13:16:41 WAT - Record created by system\'],'
     
    150150        # set values we can expect in export file
    151151        self.setup_student(self.student)
    152         self.student.date_of_invitation = 'Come soon'
     152        self.student.physical_clearance_date = 'Come soon'
    153153        IWorkflowState(self.student).setState('clearance requested')
    154154        exporter = ClearanceRequestedStudentExporter()
     
    157157        self.assertMatches(
    158158            'student_id,reg_number,display_fullname,state,current_session,'
    159             'history,date_of_invitation\r\n'
     159            'history,physical_clearance_date\r\n'
    160160            'A111111,123,Anna M. Tester,clearance requested,'
    161161            '2012,2014-12-02 07:17:02 WAT - Record created by system,'
Note: See TracChangeset for help on using the changeset viewer.