From 40db439904c0cb3968742237f5e124884a9d00a9 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 12 Aug 2021 14:55:25 +0200 Subject: [PATCH] oups --- app/scodoc/sco_import_etuds.py | 8 ++++---- app/scodoc/sco_import_users.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/scodoc/sco_import_etuds.py b/app/scodoc/sco_import_etuds.py index d5db5eab7..499059152 100644 --- a/app/scodoc/sco_import_etuds.py +++ b/app/scodoc/sco_import_etuds.py @@ -163,8 +163,8 @@ def sco_import_generate_excel_sample( (only columns from these tables will be generated) If group_ids, liste les etudiants de ces groupes """ - style = sco_excel.Excel_MakeStyle(bold=True) - style_required = sco_excel.Excel_MakeStyle(bold=True, color="red") + style = sco_excel.excel_make_style(bold=True) + style_required = sco_excel.excel_make_style(bold=True, color="red") titles = [] titlesStyles = [] for l in fmt: @@ -213,8 +213,8 @@ def sco_import_generate_excel_sample( lines.append(l) else: lines = [[]] # empty content, titles only - return sco_excel.Excel_SimpleTable( - titles=titles, titlesStyles=titlesStyles, SheetName="Etudiants", lines=lines + return sco_excel.excel_simple_table( + titles=titles, titlesStyles=titlesStyles, sheet_name="Etudiants", lines=lines ) diff --git a/app/scodoc/sco_import_users.py b/app/scodoc/sco_import_users.py index 1b36ce1eb..1080799e0 100644 --- a/app/scodoc/sco_import_users.py +++ b/app/scodoc/sco_import_users.py @@ -46,7 +46,7 @@ TITLES = ("user_name", "nom", "prenom", "email", "roles", "dept") def generate_excel_sample(): """generates an excel document suitable to import users""" - style = sco_excel.Excel_MakeStyle(bold=True) + style = sco_excel.excel_make_style(bold=True) titles = TITLES titlesStyles = [style] * len(titles) return sco_excel.excel_simple_table(