From 0a62ee4dad7ff6a83742724fecea7ca16f82280e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 31 Aug 2022 22:16:38 +0200 Subject: [PATCH] Retire ancienne API: do_moduleimpl_list, do_moduleimpl_withmodule_list --- app/views/notes.py | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/app/views/notes.py b/app/views/notes.py index 34fb1b4b89..6411e5e482 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -3161,43 +3161,3 @@ def check_integrity_all(): + "

empty page: see logs and mails

" + 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)