forked from ScoDoc/ScoDoc
Fix: content-type of page with SVG graph
This commit is contained in:
parent
9c84f2d029
commit
0ca363738e
@ -708,14 +708,16 @@ def formsemestre_suivi_cohorte(
|
||||
return t
|
||||
|
||||
base_url = REQUEST.URL0
|
||||
burl = (
|
||||
"%s?formsemestre_id=%s&bac=%s&bacspecialite=%s&civilite=%s&statut=%s"
|
||||
% (base_url, formsemestre_id, bac, bacspecialite, civilite, statut)
|
||||
burl = "%s?formsemestre_id=%s&bac=%s&bacspecialite=%s&civilite=%s&statut=%s" % (
|
||||
base_url,
|
||||
formsemestre_id,
|
||||
bac,
|
||||
bacspecialite,
|
||||
civilite,
|
||||
statut,
|
||||
)
|
||||
if percent:
|
||||
pplink = (
|
||||
'<p><a href="%s&percent=0">Afficher les résultats bruts</a></p>' % burl
|
||||
)
|
||||
pplink = '<p><a href="%s&percent=0">Afficher les résultats bruts</a></p>' % burl
|
||||
else:
|
||||
pplink = (
|
||||
'<p><a href="%s&percent=1">Afficher les résultats en pourcentages</a></p>'
|
||||
@ -1571,7 +1573,6 @@ def formsemestre_graph_parcours(
|
||||
% MAX_ETUD_IN_DESCR,
|
||||
context.sco_footer(REQUEST),
|
||||
]
|
||||
REQUEST.RESPONSE.setHeader("content-type", "application/xhtml+xml")
|
||||
return "\n".join(H)
|
||||
else:
|
||||
raise ValueError("invalid format: %s" % format)
|
||||
|
Loading…
Reference in New Issue
Block a user