Changeset 9685


Ignore:
Timestamp:
19 Nov 2012, 12:33:08 (12 years ago)
Author:
Henrik Bettermann
Message:

Translate also grade and weight.

File:
1 edited

Legend:

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

    r9684 r9685  
    9696
    9797def translated_values(view):
     98    """Translate course ticket attribute values to be displayed on
     99    studylevel pages.
     100    """
    98101    lang = view.request.cookies.get('kofa.language')
    99102    for value in view.context.values():
     
    110113        value_dict['automatic'] = translate(str(value.automatic), 'zope',
    111114            target_language=lang)
     115        value_dict['grade'] = value.grade
     116        value_dict['weight'] = value.weight
    112117        yield value_dict
    113118
Note: See TracChangeset for help on using the changeset viewer.