Changeset 8558


Ignore:
Timestamp:
30 May 2012, 08:54:38 (12 years ago)
Author:
Henrik Bettermann
Message:

Workaround to avoid RuntimeErrors?.

File:
1 edited

Legend:

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

    r8481 r8558  
    706706        lang = self.request.cookies.get('kofa.language')
    707707        for value in self.context.values():
    708             # We have to make a deepcopy otherwise we'll override
    709             # the object's dict values (not the attributes).
    710             value_dict = deepcopy(value.__dict__)
     708            value_dict = dict([i for i in value.__dict__.items()])
    711709            value_dict['mandatory'] = translate(str(value.mandatory), 'zope',
    712710                target_language=lang)
Note: See TracChangeset for help on using the changeset viewer.