Retire ancienne API: do_moduleimpl_list, do_moduleimpl_withmodule_list

This commit is contained in:
Emmanuel Viennet 2022-08-31 22:16:38 +02:00
parent f749f6e82d
commit 0a62ee4dad

View File

@ -3161,43 +3161,3 @@ def check_integrity_all():
+ "<p>empty page: see logs and mails</p>"
+ html_sco_header.sco_footer()
)
# --------------------------------------------------------------------
# Support for legacy ScoDoc 7 API
# --------------------------------------------------------------------
@bp.route("/moduleimpl_list")
@scodoc
@permission_required(Permission.ScoView)
@scodoc7func
def moduleimpl_list(
moduleimpl_id=None, formsemestre_id=None, module_id=None, format="json"
):
# TODO DEPRECATED A RETIRER
try:
data = sco_moduleimpl.moduleimpl_list(
moduleimpl_id=moduleimpl_id,
formsemestre_id=formsemestre_id,
module_id=module_id,
)
return scu.sendResult(data, format=format)
except ScoException:
abort(404)
@bp.route("/do_moduleimpl_withmodule_list") # ancien nom
@bp.route("/moduleimpl_withmodule_list")
@scodoc
@permission_required(Permission.ScoView)
@scodoc7func
def moduleimpl_withmodule_list(
moduleimpl_id=None, formsemestre_id=None, module_id=None, format="json"
):
"""API ScoDoc 7"""
# TODO DEPRECATED A RETIRER
data = sco_moduleimpl.moduleimpl_withmodule_list(
moduleimpl_id=moduleimpl_id,
formsemestre_id=formsemestre_id,
module_id=module_id,
)
return scu.sendResult(data, format=format)