forked from ScoDoc/ScoDoc
finalisation
This commit is contained in:
parent
c955870e1e
commit
f7961a135a
@ -59,22 +59,6 @@ class COLORS(Enum):
|
|||||||
LIGHT_YELLOW = "FFFFFF99"
|
LIGHT_YELLOW = "FFFFFF99"
|
||||||
|
|
||||||
|
|
||||||
# def send_excel_file(request, data, filename, mime=scu.XLSX_MIMETYPE):
|
|
||||||
# """publication fichier.
|
|
||||||
# (on ne doit rien avoir émis avant, car ici sont générés les entetes)
|
|
||||||
# """
|
|
||||||
# filename = (
|
|
||||||
# scu.unescape_html(scu.suppress_accents(filename))
|
|
||||||
# .replace("&", "")
|
|
||||||
# .replace(" ", "_")
|
|
||||||
# )
|
|
||||||
# request.RESPONSE.setHeader("content-type", mime)
|
|
||||||
# request.RESPONSE.setHeader(
|
|
||||||
# "content-disposition", 'attachment; filename="%s"' % filename
|
|
||||||
# )
|
|
||||||
# return data
|
|
||||||
|
|
||||||
|
|
||||||
# Un style est enregistré comme un dictionnaire qui précise la valeur d'un attributdans la liste suivante:
|
# Un style est enregistré comme un dictionnaire qui précise la valeur d'un attributdans la liste suivante:
|
||||||
# font, border, number_format, fill,...
|
# font, border, number_format, fill,...
|
||||||
# (cf https://openpyxl.readthedocs.io/en/stable/styles.html#working-with-styles)
|
# (cf https://openpyxl.readthedocs.io/en/stable/styles.html#working-with-styles)
|
||||||
@ -351,10 +335,10 @@ class ScoExcelSheet:
|
|||||||
Ce flux pourra ensuite être repris dans send_excel_file (classeur mono feille)
|
Ce flux pourra ensuite être repris dans send_excel_file (classeur mono feille)
|
||||||
ou pour la génération d'un classeur multi-feuilles
|
ou pour la génération d'un classeur multi-feuilles
|
||||||
"""
|
"""
|
||||||
for col in self.column_dimensions.keys():
|
for row in self.column_dimensions.keys():
|
||||||
self.ws.column_dimensions[col] = self.column_dimensions[col]
|
self.ws.column_dimensions[row] = self.column_dimensions[row]
|
||||||
for col in self.row_dimensions.keys():
|
for row in self.row_dimensions.keys():
|
||||||
self.ws.row_dimensions[col] = self.row_dimensions[col]
|
self.ws.row_dimensions[row] = self.row_dimensions[row]
|
||||||
for row in self.rows:
|
for row in self.rows:
|
||||||
self.ws.append(row)
|
self.ws.append(row)
|
||||||
|
|
||||||
|
@ -34,10 +34,6 @@ import random
|
|||||||
import time
|
import time
|
||||||
from copy import copy
|
from copy import copy
|
||||||
|
|
||||||
import flask
|
|
||||||
from flask import request
|
|
||||||
|
|
||||||
from app.scodoc.sco_exceptions import ScoValueError
|
|
||||||
import wtforms.validators
|
import wtforms.validators
|
||||||
from flask import request, render_template
|
from flask import request, render_template
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
@ -50,7 +46,6 @@ from wtforms import (
|
|||||||
RadioField,
|
RadioField,
|
||||||
HiddenField,
|
HiddenField,
|
||||||
SelectMultipleField,
|
SelectMultipleField,
|
||||||
BooleanField,
|
|
||||||
)
|
)
|
||||||
import app.scodoc.sco_utils as scu
|
import app.scodoc.sco_utils as scu
|
||||||
import app.scodoc.notesdb as ndb
|
import app.scodoc.notesdb as ndb
|
||||||
@ -69,8 +64,8 @@ from app.scodoc.gen_tables import GenTable
|
|||||||
from app.scodoc import sco_etud
|
from app.scodoc import sco_etud
|
||||||
import sco_version
|
import sco_version
|
||||||
|
|
||||||
# _ = lambda x: x # sans babel
|
_ = lambda x: x # sans babel
|
||||||
# _l = _
|
_l = _
|
||||||
|
|
||||||
COORD = "Coordonnées"
|
COORD = "Coordonnées"
|
||||||
SEQ = "Continue"
|
SEQ = "Continue"
|
||||||
|
Loading…
Reference in New Issue
Block a user