Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
and
there
.
Show more breadcrumbs
w2pext
plugin_dbui
Commits
1e105b01
Commit
1e105b01
authored
13 years ago
by
tux091
Browse files
Options
Downloads
Patches
Plain Diff
Final touch in order to run with application embeded in the browser.
parent
7a897195
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
controllers/reports.py
+11
-7
11 additions, 7 deletions
controllers/reports.py
views/reports/report_2.latex
+2
-2
2 additions, 2 deletions
views/reports/report_2.latex
with
13 additions
and
9 deletions
controllers/reports.py
+
11
−
7
View file @
1e105b01
...
...
@@ -22,21 +22,25 @@ def report_2():
"""
vars
=
request
.
vars
fmt
=
vars
.
Foo1My_format
# user request a file with a specific format (latex,...)
# return to the browser na iframe balise with a new URL
# the browser will request the file locate at the url
if
vars
.
Foo1My_format
and
vars
.
Foo1My_format
==
'
latex
'
:
# The iframe occupy all the space in the receiving container
# it is usefull for embeded application like acroread.
if
fmt
and
fmt
!=
'
html
'
:
# remove the field use to select the file format
# in order to avoid circular loop
del
vars
.
Foo1My_format
s
=
IFRAME
(
_id
=
'
MyId
'
,
_frameborder
=
0
,
_width
=
0
,
_height
=
0
,
_css
=
'
display:none;visibility:hidden;height:0px;
'
,
_src
=
URL
(
'
reports
'
,
'
report_2.latex
'
,
vars
=
vars
)).
xml
()
_width
=
"
100%
"
,
_height
=
"
100%
"
,
_src
=
URL
(
'
reports
'
,
'
report_2.%s
'
%
fmt
,
vars
=
vars
)).
xml
()
# remove the field use to select the file format
# in order to avoid circular loop
del
fmt
return
s
...
...
This diff is collapsed.
Click to expand it.
views/reports/report_2.latex
+
2
−
2
View file @
1e105b01
...
...
@@ -5,7 +5,7 @@
\begin{document}
\section*
{
Test
}
\begin{enumerate}
{{
for k in test:
}}
\item
{{
=k
}}
:
{{
=test[k]
}}
{{
pass
}}
{{
for k in test:
}}
\item
{{
=k.replace('
_
', ' ')
}}
:
{{
=test[k]
}}
{{
pass
}}
\end{enumerate}
\end{document}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment