forked from ScoDoc/ScoDoc
XMLgetFormsemestres
This commit is contained in:
parent
6880c5bf54
commit
104c01ee29
@ -647,7 +647,11 @@ def XMLgetFormsemestres(etape_apo=None, formsemestre_id=None, REQUEST=None):
|
|||||||
REQUEST.RESPONSE.setHeader("content-type", scu.XML_MIMETYPE)
|
REQUEST.RESPONSE.setHeader("content-type", scu.XML_MIMETYPE)
|
||||||
doc = ElementTree.Element("formsemestrelist")
|
doc = ElementTree.Element("formsemestrelist")
|
||||||
for sem in sco_formsemestre.do_formsemestre_list(args=args):
|
for sem in sco_formsemestre.do_formsemestre_list(args=args):
|
||||||
doc.append("formsemestre", **sem)
|
for k in sem:
|
||||||
|
if isinstance(sem[k], int):
|
||||||
|
sem[k] = str(sem[k])
|
||||||
|
sem_elt = ElementTree.Element("formsemestre", **sem)
|
||||||
|
doc.append(sem_elt)
|
||||||
|
|
||||||
return sco_xml.XML_HEADER + ElementTree.tostring(doc).decode(scu.SCO_ENCODING)
|
return sco_xml.XML_HEADER + ElementTree.tostring(doc).decode(scu.SCO_ENCODING)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user