1
0
forked from ScoDoc/ScoDoc

fix routes

This commit is contained in:
Emmanuel Viennet 2021-07-05 23:53:23 +02:00
parent 20337bc546
commit d64e6632f0
4 changed files with 12 additions and 4 deletions

View File

@ -247,7 +247,7 @@ def etudarchive_generate_excel_sample(context, group_id=None, REQUEST=None):
def etudarchive_import_files_form(context, group_id, REQUEST=None): def etudarchive_import_files_form(context, group_id, REQUEST=None):
"""Formualaire pour importation fichiers d'un groupe""" """Formulaire pour importation fichiers d'un groupe"""
H = [ H = [
html_sco_header.sco_header( html_sco_header.sco_header(
context, REQUEST, page_title="Import de fichiers associés aux étudiants" context, REQUEST, page_title="Import de fichiers associés aux étudiants"

View File

@ -102,7 +102,12 @@ def _menuScolarite(context, authuser, sem, etudid):
"enabled": authuser.has_permission(Permission.ScoEtudInscrit) "enabled": authuser.has_permission(Permission.ScoEtudInscrit)
and not locked, and not locked,
}, },
{"title": def_title, "endpoint": def_url, "enabled": def_enabled}, {
"title": def_title,
"endpoint": def_url,
"args": args,
"enabled": def_enabled,
},
{ {
"title": "Inscrire à un module optionnel (ou au sport)", "title": "Inscrire à un module optionnel (ou au sport)",
"endpoint": "notes.formsemestre_inscription_option", "endpoint": "notes.formsemestre_inscription_option",
@ -113,6 +118,7 @@ def _menuScolarite(context, authuser, sem, etudid):
{ {
"title": "Désinscrire (en cas d'erreur)", "title": "Désinscrire (en cas d'erreur)",
"endpoint": "notes.formsemestre_desinscription", "endpoint": "notes.formsemestre_desinscription",
"args": args,
"enabled": authuser.has_permission(Permission.ScoEtudInscrit) "enabled": authuser.has_permission(Permission.ScoEtudInscrit)
and not locked, and not locked,
}, },
@ -125,6 +131,7 @@ def _menuScolarite(context, authuser, sem, etudid):
{ {
"title": "Enregistrer un semestre effectué ailleurs", "title": "Enregistrer un semestre effectué ailleurs",
"endpoint": "notes.formsemestre_ext_create_form", "endpoint": "notes.formsemestre_ext_create_form",
"args": args,
"enabled": authuser.has_permission(Permission.ScoImplement), "enabled": authuser.has_permission(Permission.ScoImplement),
}, },
] ]

View File

@ -1428,6 +1428,7 @@ sco_publish(
"/formsemestre_inscription_option", "/formsemestre_inscription_option",
sco_formsemestre_inscriptions.formsemestre_inscription_option, sco_formsemestre_inscriptions.formsemestre_inscription_option,
Permission.ScoEtudInscrit, Permission.ScoEtudInscrit,
methods=["GET", "POST"],
) )
sco_publish( sco_publish(
"/do_moduleimpl_incription_options", "/do_moduleimpl_incription_options",

View File

@ -915,7 +915,7 @@ def _do_dem_or_def_etud(
return REQUEST.RESPONSE.redirect("ficheEtud?etudid=" + etudid) return REQUEST.RESPONSE.redirect("ficheEtud?etudid=" + etudid)
@bp.route("/doCancelDem") @bp.route("/doCancelDem", methods=["GET", "POST"])
@permission_required(Permission.ScoEtudInscrit) @permission_required(Permission.ScoEtudInscrit)
@scodoc7func(context) @scodoc7func(context)
def doCancelDem( def doCancelDem(
@ -937,7 +937,7 @@ def doCancelDem(
) )
@bp.route("/doCancelDef") @bp.route("/doCancelDef", methods=["GET", "POST"])
@permission_required(Permission.ScoEtudInscrit) @permission_required(Permission.ScoEtudInscrit)
@scodoc7func(context) @scodoc7func(context)
def doCancelDef( def doCancelDef(