From 01ea6286ee2a9c6e8853b6fcce4de765cbf0dfcc Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 18 Nov 2021 23:52:06 +0100 Subject: [PATCH] importe modeles pour faciliter essais interactifs --- scodoc.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/scodoc.py b/scodoc.py index 2a48a794..9f84ecdf 100755 --- a/scodoc.py +++ b/scodoc.py @@ -22,8 +22,14 @@ from app import models from app.auth.models import User, Role, UserRole from app.models import ScoPreference +from app.models import Formation, UniteEns, Module +from app.models import FormSemestre, FormsemestreInscription +from app.models import ModuleImpl, ModuleImplInscription +from app.models import Identite +from app.models.evaluations import Evaluation +from app.scodoc.sco_etud import identite_create from app.scodoc.sco_permissions import Permission -from app.views import notes, scolar, absences +from app.views import notes, scolar import tools from config import RunningConfig @@ -56,8 +62,17 @@ def make_shell_context(): "login_user": login_user, "logout_user": logout_user, "ctx": app.test_request_context(), - "models": models, "mapp": mapp, + "models": models, + "Evaluation": Evaluation, + "Formation": Formation, + "FormSemestre": FormSemestre, + "FormsemestreInscription": FormsemestreInscription, + "Identite": Identite, + "Module": Module, + "ModuleImpl": ModuleImpl, + "ModuleImplInscription": ModuleImplInscription, + "UniteEns": UniteEns, }