Changeset 15245


Ignore:
Timestamp:
16 Nov 2018, 13:05:02 (6 years ago)
Author:
Henrik Bettermann
Message:

Use the asteriks to mark imported total scores. Reportlab doesn't like Paragraph instances in columns.

File:
1 edited

Legend:

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

    r15240 r15245  
    2929from zope.formlib.textwidgets import BytesDisplayWidget
    3030from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    31 from reportlab.platypus import Paragraph
    32 from reportlab.lib.styles import getSampleStyleSheet
    3331from waeup.kofa.browser.layout import UtilityView
    3432from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
     
    9088from waeup.aaue.interswitch.browser import gateway_net_amt
    9189from waeup.aaue.interfaces import MessageFactory as _
    92 
    93 STYLE = getSampleStyleSheet()
    9490
    9591grok.context(IKofaObject)  # Make IKofaObject the default context
     
    10961092            total = ticket.total_score
    10971093            if getattr(ticket, 'imported_ts', None):
    1098                 total = Paragraph(
    1099                     "<b>%s</b>" % ticket.imported_ts, STYLE["Normal"])
     1094                total = "**%s**" % ticket.imported_ts
    11001095            grade = ticket._getGradeWeightFromScore[0]
    11011096            if grade in ('F', '-'):
Note: See TracChangeset for help on using the changeset viewer.