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
tev
plugin_event
Commits
43264670
Commit
43264670
authored
Nov 15, 2019
by
LE GAC Renaud
Browse files
Update to intialise plugin_dbui and fix import io.
parent
d759e57c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
models/main.py
models/main.py
+5
-1
modules/plugin_event/report_tools.py
modules/plugin_event/report_tools.py
+2
-2
views/plugin_event/graph.pdf
views/plugin_event/graph.pdf
+2
-2
views/plugin_event/graph.png
views/plugin_event/graph.png
+2
-2
No files found.
models/main.py
View file @
43264670
...
...
@@ -17,6 +17,7 @@ Note:
"""
from
_mydb
import
DBURIS
from
gluon
import
current
from
gluon.tools
import
PluginManager
from
plugin_dbui
import
(
configure_forms
,
configure_grids
,
...
...
@@ -70,8 +71,11 @@ T.lazy = True # lazy translation
# ............................................................................
#
#
Plugin dbui configuration
#
Configure plugin_dbui
#
plugins
=
PluginManager
()
plugins
.
dbui
.
pname
=
"plugin_dbui"
ctrl
=
request
.
controller
fnct
=
request
.
function
...
...
modules/plugin_event/report_tools.py
View file @
43264670
...
...
@@ -10,10 +10,10 @@ from .dataframes import to_extjs_gridcolumns
from
.event
import
Event
from
gluon
import
current
from
gluon.storage
import
Storage
from
io
import
StringIO
from
.model_report
import
AGGREGATE_FUNCS
from
matplotlib_tools
import
ticks_and_labels
from
.
matplotlib_tools
import
ticks_and_labels
from
plugin_dbui
import
Selector
,
Store
from
StringIO
import
StringIO
FIELD_TYPES
=
{
"gridcolumn"
:
"string"
,
...
...
views/plugin_event/graph.pdf
View file @
43264670
{{
import
cStringIO
response.body =
cStringIO
.StringIO()
import
io
response.body =
io
.StringIO()
response.headers['Content-Type']='application/pdf'
response.write(data, escape=False)
...
...
views/plugin_event/graph.png
View file @
43264670
{{
import
cStringIO
response.body =
cStringIO
.StringIO()
import
io
response.body =
io
.StringIO()
response.headers['Content-Type']='application/png'
response.write(data, 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