Ignore:
Timestamp:
30 Dec 2014, 09:01:23 (10 years ago)
Author:
Henrik Bettermann
Message:

We need to deepcopy dicts. A simple copy is useless.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r12297 r12339  
    2121import os
    2222import grok
     23from copy import deepcopy
    2324from StringIO import StringIO
    2425from reportlab.lib import colors
     
    293294    DOCMANAGE_DOCUMENT_STATES = (CREATED,)
    294295
    295     CONMANAGE_CUSTOMER_STATES = DOCMANAGE_CUSTOMER_STATES
     296    CONMANAGE_CUSTOMER_STATES = deepcopy(DOCMANAGE_CUSTOMER_STATES)
    296297
    297298    CONMANAGE_CONTRACT_STATES = (CREATED,)
     
    329330        }
    330331
    331     SELECTABLE_DOCTYPES_DICT = DOCTYPES_DICT
    332 
    333     SELECTABLE_CONTYPES_DICT = CONTYPES_DICT
     332    SELECTABLE_DOCTYPES_DICT = deepcopy(DOCTYPES_DICT)
     333
     334    SELECTABLE_CONTYPES_DICT = deepcopy(CONTYPES_DICT)
    334335
    335336    EXPORTER_NAMES = ('customers', 'customersampledocuments', 'samplecontracts')
Note: See TracChangeset for help on using the changeset viewer.