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
68a2d2f8
Commit
68a2d2f8
authored
Nov 06, 2019
by
LE GAC Renaud
Browse files
Update modules by applying 2to3 converter.
parent
6a4b5e58
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
26 deletions
+21
-26
modules/callbacks.py
modules/callbacks.py
+1
-1
modules/model_core.py
modules/model_core.py
+7
-8
modules/model_selector.py
modules/model_selector.py
+0
-1
modules/ui_core.py
modules/ui_core.py
+5
-6
modules/ui_selector.py
modules/ui_selector.py
+1
-2
modules/ui_viewport.py
modules/ui_viewport.py
+7
-8
No files found.
modules/callbacks.py
View file @
68a2d2f8
...
...
@@ -2,7 +2,7 @@
"""
from
gluon
import
current
from
plugin_dbui
import
CALLBACK_ERRORS
from
.
plugin_dbui
import
CALLBACK_ERRORS
def
country_delete
(
s
):
...
...
modules/model_core.py
View file @
68a2d2f8
# -*- coding: utf-8 -*-
"""Definitions of the core tables
"""
from
callbacks
import
(
country_delete
,
country_insert
,
country_update
)
from
.
callbacks
import
(
country_delete
,
country_insert
,
country_update
)
from
gluon
import
current
from
gluon.validators
import
(
IS_EMPTY_OR
,
...
...
@@ -14,10 +13,10 @@ from gluon.validators import (IS_EMPTY_OR,
IS_IN_SET
,
IS_URL
)
from
plugin_dbui
import
(
CLEAN_SPACES
,
INHIBIT_DELETE_UNDEF
,
INHIBIT_UPDATE_UNDEF
,
UNDEF_ID
)
from
.
plugin_dbui
import
(
CLEAN_SPACES
,
INHIBIT_DELETE_UNDEF
,
INHIBIT_UPDATE_UNDEF
,
UNDEF_ID
)
from
pydal
import
Field
...
...
modules/model_selector.py
View file @
68a2d2f8
# -*- coding: utf-8 -*-
"""Definitions of the selector(s)
"""
...
...
modules/ui_core.py
View file @
68a2d2f8
# -*- coding: utf-8 -*-
"""User Interface for the core tables
"""
from
gluon
import
current
from
plugin_dbui
import
(
FieldsModifier
,
FormModifier
,
GridModifier
,
StoreModifier
,
map_tabpanel
)
from
.
plugin_dbui
import
(
FieldsModifier
,
FormModifier
,
GridModifier
,
StoreModifier
,
map_tabpanel
)
TPL
=
[
'<b>{PublicationsTitle}</b><br>'
,
...
...
modules/ui_selector.py
View file @
68a2d2f8
# -*- coding: utf-8 -*-
"""User Interface for the selector tables
"""
from
plugin_dbui
import
FieldsModifier
,
FormModifier
from
.
plugin_dbui
import
FieldsModifier
,
FormModifier
class
SelectorUI
(
object
):
...
...
modules/ui_viewport.py
View file @
68a2d2f8
# -*- coding: utf-8 -*-
"""Main user interface the viewport
"""
...
...
@@ -6,13 +5,13 @@ from gluon import current
from
gluon.html
import
URL
from
gluon.tools
import
PluginManager
from
plugin_dbui
import
(
Node
,
Panel
,
to_formPanel
,
to_gridPanel
,
to_panelWithUrlSelector
,
ViewportModifier
,
Window
)
from
.
plugin_dbui
import
(
Node
,
Panel
,
to_formPanel
,
to_gridPanel
,
to_panelWithUrlSelector
,
ViewportModifier
,
Window
)
def
to_grid
(
tablename
):
...
...
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