Changeset 9866


Ignore:
Timestamp:
11 Jan 2013, 22:48:54 (12 years ago)
Author:
Henrik Bettermann
Message:

A deepcopy of PAYMENT_CATEGORIES is required.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

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

    r9864 r9866  
    2222from urllib import urlencode
    2323from datetime import datetime
    24 from copy import deepcopy
    2524from zope.event import notify
    2625from zope.i18n import translate
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r9864 r9866  
    2222import string
    2323import pytz
     24from copy import deepcopy
    2425from random import SystemRandom as r
    2526from zope.i18n import translate
     
    158159        'transfer': 'Transfer Fee',
    159160        'gown': 'Gown Hire Fee',
    160         'application': 'Application Fee'
    161         }
    162 
    163     SELECTABLE_PAYMENT_CATEGORIES = PAYMENT_CATEGORIES
    164 
    165     PREVIOUS_PAYMENT_CATEGORIES = SELECTABLE_PAYMENT_CATEGORIES
    166 
    167     BALANCE_PAYMENT_ITEMS = SELECTABLE_PAYMENT_CATEGORIES
    168     BALANCE_PAYMENT_ITEMS['balance'] = 'Balance'
     161        'application': 'Application Fee',
     162        'balance': 'Balance'
     163        }
     164
     165    SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES)
     166    del SELECTABLE_PAYMENT_CATEGORIES['balance']
     167
     168    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
     169
     170    BALANCE_PAYMENT_ITEMS = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
    169171
    170172    MODE_GROUPS = {
Note: See TracChangeset for help on using the changeset viewer.