Changeset 8143 for main/waeup.kofa
- Timestamp:
- 13 Apr 2012, 11:36:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8142 r8143 23 23 from time import time 24 24 from datetime import datetime 25 from copy import deepcopy 25 26 from zope.event import notify 26 27 from zope.i18n import translate … … 713 714 lang = self.request.cookies.get('kofa.language') 714 715 for value in self.context.values(): 715 value_dict = value.__dict__ 716 # We have to make a deepcopy otherwise we'll override 717 # the object's dict values (not the attributes). 718 value_dict = deepcopy(value.__dict__) 716 719 value_dict['mandatory'] = translate(str(value.mandatory), 'zope', 717 720 target_language=lang)
Note: See TracChangeset for help on using the changeset viewer.