📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

Commit 43264670 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update to intialise plugin_dbui and fix import io.

parent d759e57c
......@@ -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
......
......@@ -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",
......
{{
import cStringIO
response.body = cStringIO.StringIO()
import io
response.body = io.StringIO()
response.headers['Content-Type']='application/pdf'
response.write(data, escape=False)
......
{{
import cStringIO
response.body = cStringIO.StringIO()
import io
response.body = io.StringIO()
response.headers['Content-Type']='application/png'
response.write(data, escape=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment