annotate templates/base.html @ 33:00e12392f8d4

Fix saving uploaded form file to a temporary file The file must be saved to a temporary file for conversion via pyuno. pyuno can only accept filenames. Also the file position must be reset to the start. If the position is not reset we will get a IllegalArgumentException: Unsupported URL from pyuno when converting a file without template rendering.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 16 Oct 2014 11:45:51 +0200
parents 75d5d18e7d52
children
rev   line source
16
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
1 <!doctype html>
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
2 <html>
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
3 <head>
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
4 <title>{% block title %}odfcast{% endblock %}</title>
17
75d5d18e7d52 Add bootstrap for css formating
Björn Ricks <bjoern.ricks@intevation.de>
parents: 16
diff changeset
5 {% block css %}
75d5d18e7d52 Add bootstrap for css formating
Björn Ricks <bjoern.ricks@intevation.de>
parents: 16
diff changeset
6 <link rel="stylesheet"
75d5d18e7d52 Add bootstrap for css formating
Björn Ricks <bjoern.ricks@intevation.de>
parents: 16
diff changeset
7 href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
75d5d18e7d52 Add bootstrap for css formating
Björn Ricks <bjoern.ricks@intevation.de>
parents: 16
diff changeset
8 {% endblock %}
16
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
9 </head>
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
10 <body>
17
75d5d18e7d52 Add bootstrap for css formating
Björn Ricks <bjoern.ricks@intevation.de>
parents: 16
diff changeset
11 <div id="content" class="col-md-8">
16
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
12 {% block content %}{% endblock %}
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
13 </div>
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
14 </body>
f4920ab1d27c Add basic html interface for convert
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff changeset
15 </html>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)