EDS_PDF
This commit is contained in:
parent
061b909488
commit
1fc4c46c1f
2 changed files with 154 additions and 78 deletions
|
|
@ -126,14 +126,16 @@ def print_plan_formation(request):
|
|||
def print_periode_formation(request):
|
||||
filename = 'periode_formation.pdf'
|
||||
path = os.path.join(tempfile.gettempdir(), filename)
|
||||
|
||||
pdf = PeriodeFormationPdf(path)
|
||||
context = {}
|
||||
context = get_context(context)
|
||||
pdf = PeriodeFormationPdf(path)
|
||||
pdf.produce(context)
|
||||
"""
|
||||
for semestre_id in range(1, 7):
|
||||
modules = context['sem{0}'.format(str(semestre_id))]
|
||||
total = context['tot{0}'.format(str(semestre_id))]
|
||||
pdf.produce_half_year(semestre_id, modules, total)
|
||||
"""
|
||||
#pdf.print_total(context['tot'])
|
||||
|
||||
with open(path, mode='rb') as fh:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue