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

Make max file size customizable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r15622 r15652  
    489489            else:
    490490                return _(u'No bed allocated.'), None
    491         elif category == 'transcript':
    492             amount = academic_session.transcript_fee
    493         elif category == 'transfer':
    494             amount = academic_session.transfer_fee
    495         elif category == 'late_registration':
    496             amount = academic_session.late_registration_fee
     491        else:
     492            fee_name = category + '_fee'
     493            amount = getattr(academic_session, fee_name, 0.0)
    497494        if amount in (0.0, None):
    498495            return _('Amount could not be determined.'), None
     
    11401137            'studentpayments', 'bedtickets')
    11411138
     1139    # Maximum size of upload files in kB
     1140    MAX_KB = 250
     1141
    11421142    #: A prefix used when generating new student ids. Each student id will
    11431143    #: start with this string. The default is 'K' for Kofa.
Note: See TracChangeset for help on using the changeset viewer.