Ignore:
Timestamp:
12 Nov 2018, 14:21:13 (6 years ago)
Author:
Henrik Bettermann
Message:

Show imported total scores in bold.

File:
1 edited

Legend:

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

    r15229 r15232  
    2929from zope.formlib.textwidgets import BytesDisplayWidget
    3030from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
     31from reportlab.platypus import Paragraph
     32from reportlab.lib.styles import getSampleStyleSheet
    3133from waeup.kofa.browser.layout import UtilityView
    3234from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
     
    8890from waeup.aaue.interswitch.browser import gateway_net_amt
    8991from waeup.aaue.interfaces import MessageFactory as _
     92
     93STYLE = getSampleStyleSheet()
    9094
    9195grok.context(IKofaObject)  # Make IKofaObject the default context
     
    10901094                with_ca = True
    10911095            total = ticket.total_score
     1096            if getattr(ticket, 'imported_ts', None):
     1097                total = Paragraph(
     1098                    "<b>%s</b>" % ticket.total_score, STYLE["Normal"])
    10921099            grade = ticket._getGradeWeightFromScore[0]
    10931100            if grade in ('F', '-'):
Note: See TracChangeset for help on using the changeset viewer.