Ranged score system fails in report activities when using non-english views

Bug #581825 reported by Douglas Cerna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool Gradebook
Fix Released
Undecided
Douglas Cerna

Bug Description

When I use the Spanish (es) or Salvadoran Spanish (es_SV) translations in the gradebook, and I try to create a Report Activity in a Report Sheet Template, the view keeps asking me for a required input in the score system field.

From what I can see this bug is caused by the use of titles as the values of the <option ...> elements in the Score System dropdown. The English form shows:

<option value="-- Use range below --" id="form-widgets-scoresystem-0">-- Use range below --</option>

In Spanish this changes to:

<option value="-- Use el rango de abajo --" id="form-widgets-scoresystem-0">-- Use el rango de abajo --</option>

I guess the term creation has to be changed in schooltool.gradebook.browser.report_card:

def ReportScoreSystemsVocabulary(context):
    vocab = UtilityVocabulary(context, interface=IScoreSystem)
    rangedTerm = UtilityTerm('ranged', _('-- Use range below --'))
    vocab._terms[rangedTerm.token] = rangedTerm
    return vocab

Although I still don't know how zope.componentvocabulary.vocabulary.(UtilityVocabulary, UtilityTerm) work.

Changed in schooltool.gradebook:
assignee: nobody → Alan Elkner (aelkner)
description: updated
Changed in schooltool.gradebook:
assignee: Alan Elkner (aelkner) → Douglas Cerna (replaceafill)
status: New → In Progress
Changed in schooltool.gradebook:
status: In Progress → Fix Committed
Changed in schooltool.gradebook:
milestone: none → 0.7.0
Changed in schooltool.gradebook:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.