forked from ScoDoc/DocScoDoc
remove breakpoints() + blackify
This commit is contained in:
parent
2a72fb881b
commit
2519d08e40
@ -269,8 +269,13 @@ def etudarchive_generate_excel_sample(group_id=None, REQUEST=None):
|
||||
],
|
||||
extra_cols=["fichier_a_charger"],
|
||||
)
|
||||
breakpoint()
|
||||
return scu.send_file(data, "ImportFichiersEtudiants", scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
return scu.send_file(
|
||||
data,
|
||||
"ImportFichiersEtudiants",
|
||||
scu.XLSX_SUFFIX,
|
||||
scu.XLSX_MIMETYPE,
|
||||
attached=True,
|
||||
)
|
||||
# return sco_excel.send_excel_file(REQUEST, data, "ImportFichiersEtudiants" + scu.XLSX_SUFFIX)
|
||||
|
||||
|
||||
|
@ -722,8 +722,9 @@ def groups_table(
|
||||
server_name=REQUEST.BASE0,
|
||||
)
|
||||
filename = "liste_%s" % groups_infos.groups_filename + ".xlsx"
|
||||
breakpoint()
|
||||
return scu.send_file(xls, filename, scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
return scu.send_file(
|
||||
xls, filename, scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True
|
||||
)
|
||||
# return sco_excel.send_excel_file(REQUEST, xls, filename)
|
||||
elif format == "allxls":
|
||||
# feuille Excel avec toutes les infos etudiants
|
||||
@ -793,8 +794,9 @@ def groups_table(
|
||||
title = "etudiants_%s" % groups_infos.groups_filename
|
||||
xls = sco_excel.excel_simple_table(titles=titles, lines=L, sheet_name=title)
|
||||
filename = title + scu.XLSX_SUFFIX
|
||||
breakpoint()
|
||||
return scu.send_file(xls, filename, scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
return scu.send_file(
|
||||
xls, filename, scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True
|
||||
)
|
||||
# return sco_excel.send_excel_file(REQUEST, xls, filename)
|
||||
else:
|
||||
raise ValueError("unsupported format")
|
||||
|
@ -323,6 +323,11 @@ def feuille_preparation_jury(formsemestre_id, REQUEST):
|
||||
)
|
||||
)
|
||||
xls = ws.generate()
|
||||
breakpoint()
|
||||
return scu.send_file(xls, f"PrepaJury{sn}{scu.XLSX_SUFFIX}", scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
return scu.send_file(
|
||||
xls,
|
||||
f"PrepaJury{sn}{scu.XLSX_SUFFIX}",
|
||||
scu.XLSX_SUFFIX,
|
||||
scu.XLSX_MIMETYPE,
|
||||
attached=True,
|
||||
)
|
||||
# return sco_excel.send_excel_file(REQUEST, xls, f"PrepaJury{sn}{scu.XLSX_SUFFIX}")
|
||||
|
@ -829,8 +829,9 @@ def feuille_saisie_notes(evaluation_id, group_ids=[], REQUEST=None):
|
||||
|
||||
filename = "notes_%s_%s.xlsx" % (evalname, gr_title_filename)
|
||||
xls = sco_excel.excel_feuille_saisie(E, sem["titreannee"], description, lines=L)
|
||||
breakpoint()
|
||||
return scu.send_file(xls, filename, scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
return scu.send_file(
|
||||
xls, filename, scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True
|
||||
)
|
||||
# return sco_excel.send_excel_file(REQUEST, xls, filename)
|
||||
|
||||
|
||||
|
@ -486,8 +486,9 @@ def photos_generate_excel_sample(group_ids=[], REQUEST=None):
|
||||
],
|
||||
extra_cols=["fichier_photo"],
|
||||
)
|
||||
breakpoint()
|
||||
return scu.send_file(data, "ImportPhotos", scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
return scu.send_file(
|
||||
data, "ImportPhotos", scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True
|
||||
)
|
||||
# return sco_excel.send_excel_file(REQUEST, data, "ImportPhotos" + scu.XLSX_SUFFIX)
|
||||
|
||||
|
||||
|
@ -1937,7 +1937,6 @@ def import_generate_excel_sample(REQUEST, with_codesemestre="1"):
|
||||
data = sco_import_etuds.sco_import_generate_excel_sample(
|
||||
format, with_codesemestre, exclude_cols=["photo_filename"]
|
||||
)
|
||||
breakpoint()
|
||||
return scu.send_file(data, "ImportEtudiants", scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
# return sco_excel.send_excel_file(REQUEST, data, "ImportEtudiants" + scu.XLSX_SUFFIX)
|
||||
|
||||
@ -1957,7 +1956,6 @@ def import_generate_admission_sample(REQUEST, formsemestre_id):
|
||||
exclude_cols=["nationalite", "foto", "photo_filename"],
|
||||
group_ids=[group["group_id"]],
|
||||
)
|
||||
breakpoint()
|
||||
return scu.send_file(data, "AdmissionEtudiants", scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
# return sco_excel.send_excel_file(REQUEST, data, "AdmissionEtudiants" + scu.XLSX_SUFFIX)
|
||||
|
||||
|
@ -488,7 +488,6 @@ def create_user_form(REQUEST, user_name=None, edit=0, all_roles=1):
|
||||
def import_users_generate_excel_sample(REQUEST):
|
||||
"une feuille excel pour importation utilisateurs"
|
||||
data = sco_import_users.generate_excel_sample()
|
||||
breakpoint()
|
||||
return scu.send_file(data, "ImportUtilisateurs", scu.XLSX_SUFFIX, scu.XLSX_MIMETYPE, attached=True)
|
||||
# return sco_excel.send_excel_file(REQUEST, data, "ImportUtilisateurs" + scu.XLSX_SUFFIX)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user