Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
1ea1f46f
Commit
1ea1f46f
authored
Nov 07, 2019
by
LE GAC Renaud
Browse files
Apply 2to3 converter to views.
parent
c7593632
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
views/graphs/index.pdf
views/graphs/index.pdf
+2
-2
views/graphs/index.png
views/graphs/index.png
+2
-2
views/lists/index.odt
views/lists/index.odt
+2
-2
views/tex2pdf.html
views/tex2pdf.html
+2
-2
No files found.
views/graphs/index.pdf
View file @
1ea1f46f
{{
import
cStringIO
response.body =
cStringIO
.StringIO()
import
io
response.body =
io
.StringIO()
response.headers['Content-Type']='application/pdf'
response.write(data, escape=False)
...
...
views/graphs/index.png
View file @
1ea1f46f
{{
import
cStringIO
response.body =
cStringIO
.StringIO()
import
io
response.body =
io
.StringIO()
response.headers['Content-Type']='application/png'
response.write(data, escape=False)
...
...
views/lists/index.odt
View file @
1ea1f46f
{{include 'lists/index.html'}}
{{
import base64
import
cStringIO
import
io
import os
...
...
@@ -63,7 +63,7 @@
#
# build the response
#
response.body =
cStringIO
.StringIO()
response.body =
io
.StringIO()
response.headers['Content-Type']='application/vnd.oasis.opendocument.text'
response.headers['Content-Disposition'] = 'attachment;filename="list.odt"'
...
...
views/tex2pdf.html
View file @
1ea1f46f
...
...
@@ -5,7 +5,7 @@
#
#--------------------------------------------------------------------------
import base64
import
cStringIO
import
io
import os
from subprocess import call, check_output
...
...
@@ -58,7 +58,7 @@
# Prepare the response
#
response.headers['Content-Type']='application/pdf'
response.body =
cStringIO
.StringIO()
response.body =
io
.StringIO()
s64 = base64.b64encode(spdf)
response.write(s64, escape=False)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment