forked from ScoDoc/DocScoDoc
oups
This commit is contained in:
parent
fbdcf63c70
commit
40db439904
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user