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.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba
Files:
2 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')
  • main/waeup.ikoba/trunk/src/waeup/ikoba/utils/utils.py

    r12306 r12339  
    2222import string
    2323import pytz
    24 from copy import deepcopy
    2524from random import SystemRandom as r
    2625from zope.i18n import translate
Note: See TracChangeset for help on using the changeset viewer.