Ignore:
Timestamp:
9 Oct 2019, 09:14:07 (5 years ago)
Author:
Henrik Bettermann
Message:

Make max file size customizable.

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

Legend:

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

    r15468 r15651  
    7878            'marit_stat,matric_number,middlename,nationality,'
    7979            'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,'
    80             'nysc_lga,nysc_location,nysc_year,officer_comment,'
     80            'nysc_lga,nysc_location,nysc_year,officer_comment,parents_email,'
    8181            'perm_address,personal_updated,phone,physical_clearance_date,'
    8282            'provisionally_cleared,reg_number,'
     
    8787            '"[(\'accounts\', \'A\')]",my clr code,1981-02-04#,,,'
    8888            'anna@sample.com,,,,,,,,,,,,,Anna,,,,,,"[(\'accounts\', \'A\')]"'
    89             ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,'
     89            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,,'
    9090            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,'
    9191            '"[(\'accounts\', \'A\')]",,f,A111111,0,,,created,'
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/utils.py

    r13126 r15651  
    3838    STUDENT_EXPORTER_NAMES = StudentsUtils().STUDENT_EXPORTER_NAMES + (
    3939            'clearancerequested',)
     40
     41    # Maximum size of upload files in kB
     42    MAX_KB = 250
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py

    r14881 r15651  
    9898    label = _(u'Acceptance Letter')
    9999    title = _(u'Acceptance Letter Scan')
    100     mus = 1024 * 250
    101100    download_name = u'acc_let'
    102101    tab_redirect = '?tab2'
     
    127126    label = _(u'LGA Identification')
    128127    title = _(u'LGA Identification Scan')
    129     mus = 1024 * 250
    130128    download_name = u'lga_ident'
    131129
     
    155153    label = _(u'First Sitting Result')
    156154    title = _(u'First Sitting Result Scan')
    157     mus = 1024 * 250
    158155    download_name = u'fst_sit_scan'
    159156
     
    183180    label = _(u'Second Sitting Result')
    184181    title = _(u'Second Sitting Result Scan')
    185     mus = 1024 * 250
    186182    download_name = u'scd_sit_scan'
    187183
     
    211207    label = _(u'Higher Qualification Result')
    212208    title = _(u'Higher Qualification Result Scan')
    213     mus = 1024 * 250
    214209    download_name = u'hq_scan'
    215210
     
    239234    label = _(u'Second Higher Qualification Result')
    240235    title = _(u'Second Higher Qualification Result Scan')
    241     mus = 1024 * 250
    242236    download_name = u'hq_scan2'
    243237
     
    271265    label = _(u'Advanced Level Result')
    272266    title = _(u'Advanced Level Result Scan')
    273     mus = 1024 * 250
    274267    download_name = u'alr_scan'
    275268
     
    299292    label = _(u'Certificate')
    300293    title = _(u'Certificate Scan')
    301     mus = 1024 * 250
    302294    download_name = u'cert'
    303295
     
    327319    label = _(u'Second Certificate')
    328320    title = _(u'Second Certificate Scan')
    329     mus = 1024 * 250
    330321    download_name = u'cert2'
    331322
     
    359350    label = _(u'Third Certificate')
    360351    title = _(u'Third Certificate Scan')
    361     mus = 1024 * 250
    362352    download_name = u'cert3'
    363353
     
    391381    label = _(u'Evidence of Name')
    392382    title = _(u'Evidence of Name Scan')
    393     mus = 1024 * 250
    394383    download_name = u'evid'
    395384
     
    419408    label = _(u'Result Statement')
    420409    title = _(u'Result Statement Scan')
    421     mus = 1024 * 250
    422410    download_name = u'res_stat'
    423411
     
    447435    label = _(u'Guarantor/Referee Letter')
    448436    title = _(u'Guarantor/Referee Letter Scan')
    449     mus = 1024 * 250
    450437    download_name = u'ref_let'
    451438
     
    475462    label = _(u'Second Referee Letter')
    476463    title = _(u'Second Referee Letter Scan')
    477     mus = 1024 * 250
    478464    download_name = u'ref_let2'
    479465
     
    507493    label = _(u'Third Referee Letter')
    508494    title = _(u'Third Referee Letter Scan')
    509     mus = 1024 * 250
    510495    download_name = u'ref_let3'
    511496
     
    539524    label = _(u'Affidavit of Good Conduct')
    540525    title = _(u'Affidavit of Good Conduct Scan')
    541     mus = 1024 * 250
    542526    download_name = u'stat_dec'
    543527
     
    567551    label = _(u'Letter of Admission')
    568552    title = _(u'Letter of Admission Scan')
    569     mus = 1024 * 250
    570553    download_name = u'admission_let'
    571554
Note: See TracChangeset for help on using the changeset viewer.