Changeset 8142 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 13 Apr 2012, 10:11:13 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8141 r8142 713 713 lang = self.request.cookies.get('kofa.language') 714 714 for value in self.context.values(): 715 import pdb; pdb.set_trace()716 715 value_dict = value.__dict__ 717 716 value_dict['mandatory'] = translate(str(value.mandatory), 'zope', -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r8141 r8142 77 77 The returned snippet is unicode type. 78 78 """ 79 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 79 try: 80 # In unit tests IKofaUtils has not been registered 81 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 82 except: 83 portal_language = 'en' 80 84 if not isinstance(text, unicode): 81 85 if isinstance(text, basestring):
Note: See TracChangeset for help on using the changeset viewer.