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
Open sidebar
w2pext
plugin_dbui
Commits
445fd4aa
Commit
445fd4aa
authored
Apr 26, 2017
by
LE GAC Renaud
Browse files
Update modules converters to add missing types in JSON_TYPES.
parent
2eddca63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
modules/plugin_dbui/converter.py
modules/plugin_dbui/converter.py
+20
-3
No files found.
modules/plugin_dbui/converter.py
View file @
445fd4aa
...
...
@@ -4,7 +4,7 @@
import
gluon.dal
import
re
from
datetime
import
date
,
datetime
,
time
from
extjs
import
(
Base
,
CheckBox
,
ComboBox
,
...
...
@@ -29,6 +29,7 @@ from extjs import (Base,
Model
,
PanelWithUrlSelector
)
from
gluon
import
current
from
gluon.languages
import
lazyT
from
gluon.storage
import
Storage
from
gluon.tools
import
PluginManager
from
gridmodifier
import
ROW_NUMBERING
...
...
@@ -68,8 +69,24 @@ PAGE = 'page'
SUCCESS
=
'success'
TOTAL
=
'count'
# list of type which can be converted as a JSON string
JSON_TYPES
=
(
bool
,
dict
,
float
,
int
,
list
,
long
,
str
,
tuple
)
# types which can be converted as a JSON string using plugin_dbui.JSONEncoder:
#
# from plugin_dbui import JSONEncode
# s = json.dumps(foo, cls=JSONEncoder)
#
JSON_TYPES
=
(
bool
,
date
,
datetime
,
dict
,
float
,
int
,
lazyT
,
list
,
long
,
str
,
time
,
tuple
,
unicode
)
# xtype defining linked comboBoxes
X_LINKED_COMBO
=
[
'xcomboboxmaster'
,
'xcomboboxslave'
]
...
...
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