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
tev
plugin_event
Commits
869a656e
Commit
869a656e
authored
Apr 08, 2017
by
LE GAC Renaud
Browse files
Merge branch 'master' into 'production'
Release 0.7.3 See merge request
!35
parents
ff289164
9771adf0
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
28 deletions
+29
-28
modules/plugin_event/dataframes.py
modules/plugin_event/dataframes.py
+5
-5
modules/plugin_event/model_report.py
modules/plugin_event/model_report.py
+2
-2
modules/plugin_event/report_tools.py
modules/plugin_event/report_tools.py
+6
-6
modules/plugin_event/ui_core.py
modules/plugin_event/ui_core.py
+3
-2
modules/plugin_event/ui_report.py
modules/plugin_event/ui_report.py
+3
-3
modules/plugin_event/ui_selector.py
modules/plugin_event/ui_selector.py
+2
-2
modules/plugin_event/ui_viewport.py
modules/plugin_event/ui_viewport.py
+1
-1
static/plugin_event/CHANGELOG
static/plugin_event/CHANGELOG
+6
-6
static/plugin_event/VERSION
static/plugin_event/VERSION
+1
-1
No files found.
modules/plugin_event/dataframes.py
View file @
869a656e
...
@@ -62,7 +62,7 @@ def active_period(**kwargs):
...
@@ -62,7 +62,7 @@ def active_period(**kwargs):
stop (date): is fixed to DATE_MAX when not defined
stop (date): is fixed to DATE_MAX when not defined
"""
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
history
=
db
.
history
# extract database information
# extract database information
...
@@ -377,7 +377,7 @@ def get_items(**kwargs):
...
@@ -377,7 +377,7 @@ def get_items(**kwargs):
* one column for each key of the history.data dictionary
* one column for each key of the history.data dictionary
"""
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
history
=
db
.
history
# database query including foreign table
# database query including foreign table
...
@@ -565,7 +565,7 @@ def get_items_small(**kwargs):
...
@@ -565,7 +565,7 @@ def get_items_small(**kwargs):
* one column for each key of the history.data dictionary
* one column for each key of the history.data dictionary
"""
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
history
=
db
.
history
# database query
# database query
...
@@ -715,7 +715,7 @@ def get_objectlike_items(**kwargs):
...
@@ -715,7 +715,7 @@ def get_objectlike_items(**kwargs):
* one column for each key of the history.data dictionary
* one column for each key of the history.data dictionary
"""
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
history
=
db
.
history
# database query including foreign table
# database query including foreign table
...
@@ -890,7 +890,7 @@ def get_peoplelike_items(**kwargs):
...
@@ -890,7 +890,7 @@ def get_peoplelike_items(**kwargs):
* one column for each key of the history.data dictionary
* one column for each key of the history.data dictionary
"""
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
history
=
db
.
history
# database query including foreign table
# database query including foreign table
...
...
modules/plugin_event/model_report.py
View file @
869a656e
...
@@ -7,7 +7,7 @@ import numpy as np
...
@@ -7,7 +7,7 @@ import numpy as np
from
callbacks
import
ON_CREATE_LISTS2
,
ON_UPDATE_LISTS2
from
callbacks
import
ON_CREATE_LISTS2
,
ON_UPDATE_LISTS2
from
event
import
Event
from
event
import
Event
from
gluon
import
current
,
IS_IN_SET
from
gluon
import
IS_IN_SET
from
pydal
import
Field
from
pydal
import
Field
...
@@ -94,7 +94,7 @@ class Report(object):
...
@@ -94,7 +94,7 @@ class Report(object):
pyDAL.Table
pyDAL.Table
"""
"""
migrate
=
current
.
globalenv
[
"MIGRATE"
]
migrate
=
db
.
_migrate
or
db
.
_migrate_enabled
table
=
db
.
define_table
(
table
=
db
.
define_table
(
"lists2"
,
"lists2"
,
...
...
modules/plugin_event/report_tools.py
View file @
869a656e
...
@@ -140,7 +140,7 @@ class BaseReport(object):
...
@@ -140,7 +140,7 @@ class BaseReport(object):
"""
"""
T
=
current
.
T
T
=
current
.
T
db
=
current
.
globalenv
[
"db"
]
db
=
current
.
db
config
=
self
.
config
config
=
self
.
config
selector
=
self
.
selector
selector
=
self
.
selector
...
@@ -428,8 +428,8 @@ class List(BaseReport):
...
@@ -428,8 +428,8 @@ class List(BaseReport):
"""
"""
def
__init__
(
self
,
id_list
):
def
__init__
(
self
,
id_list
):
db
=
current
.
globalenv
[
"db"
]
db
=
current
.
db
virtdb
=
current
.
globalenv
[
"
virtdb
"
]
virtdb
=
current
.
virtdb
BaseReport
.
__init__
(
BaseReport
.
__init__
(
self
,
self
,
...
@@ -558,8 +558,8 @@ class Metric2D(BaseReport):
...
@@ -558,8 +558,8 @@ class Metric2D(BaseReport):
"""
"""
def
__init__
(
self
,
id_report
):
def
__init__
(
self
,
id_report
):
db
=
current
.
globalenv
[
"db"
]
db
=
current
.
db
virtdb
=
current
.
globalenv
[
"
virtdb
"
]
virtdb
=
current
.
virtdb
BaseReport
.
__init__
(
BaseReport
.
__init__
(
self
,
self
,
...
@@ -770,7 +770,7 @@ class Source(BaseReport):
...
@@ -770,7 +770,7 @@ class Source(BaseReport):
"""
"""
def
__init__
(
self
,
name
):
def
__init__
(
self
,
name
):
virtdb
=
current
.
globalenv
[
"
virtdb
"
]
virtdb
=
current
.
virtdb
BaseReport
.
__init__
(
BaseReport
.
__init__
(
self
,
self
,
...
...
modules/plugin_event/ui_core.py
View file @
869a656e
...
@@ -15,8 +15,9 @@ storeModifier = dbui.StoreModifier
...
@@ -15,8 +15,9 @@ storeModifier = dbui.StoreModifier
class
CoreUi
(
object
):
class
CoreUi
(
object
):
@
staticmethod
@
staticmethod
def
define
(
db
,
T
):
def
configure
(
db
,
T
):
"""Tune the user interface for the history table and its foreign tables,
"""Configure the user interface for the history table and
its foreign tables,
Args:
Args:
db (pyDAL.DAL): database connection
db (pyDAL.DAL): database connection
...
...
modules/plugin_event/ui_report.py
View file @
869a656e
...
@@ -31,9 +31,9 @@ It is possible to filter the source by applying a query on its fields.
...
@@ -31,9 +31,9 @@ It is possible to filter the source by applying a query on its fields.
class
ReportUi
(
object
):
class
ReportUi
(
object
):
@
staticmethod
@
staticmethod
def
defin
e
(
db
,
T
):
def
configur
e
(
db
,
T
):
"""
Tun
e the user interface for the report tables
:
lists
, metrics1d,
"""
Configur
e the user interface for the report tables lists
metrics2d
and graphs
.
and
metrics2d.
Args:
Args:
db (pyDAL.DAL): database connection
db (pyDAL.DAL): database connection
...
...
modules/plugin_event/ui_selector.py
View file @
869a656e
...
@@ -16,8 +16,8 @@ storeModifier = dbui.StoreModifier
...
@@ -16,8 +16,8 @@ storeModifier = dbui.StoreModifier
class
SelectorUi
(
object
):
class
SelectorUi
(
object
):
@
staticmethod
@
staticmethod
def
defin
e
(
virtdb
,
db
,
T
):
def
configur
e
(
virtdb
,
db
,
T
):
"""
Tun
e the user interface for
the
selector.
"""
Configur
e the user interface for selector
s
.
Args:
Args:
virtdb (pyDAL.DAL): connection to the virtual database
virtdb (pyDAL.DAL): connection to the virtual database
...
...
modules/plugin_event/ui_viewport.py
View file @
869a656e
...
@@ -18,7 +18,7 @@ to_grid = dbui.to_gridPanel
...
@@ -18,7 +18,7 @@ to_grid = dbui.to_gridPanel
class
ViewportUi
(
object
):
class
ViewportUi
(
object
):
@
staticmethod
@
staticmethod
def
defin
e
(
db
,
T
,
virtdb
):
def
configur
e
(
db
,
T
,
virtdb
):
"""Configure the viewport.
"""Configure the viewport.
Args:
Args:
...
...
static/plugin_event/CHANGELOG
View file @
869a656e
...
@@ -2,16 +2,16 @@
...
@@ -2,16 +2,16 @@
HEAD
HEAD
0.7.
2
(Apr 2017)
0.7.
3
(Apr 2017)
- Major release which is non backward compatible.
- Major release which is non backward compatible.
It introduces new mechanisms for the reporting based on pandas.DataFrame.
It introduces new mechanisms for the reporting based on pandas.DataFrame.
- Required plugin_dbui 0.9.8 or higher.
- Required plugin_dbui 0.9.8 or higher.
- Add two tables
L
ists2 and
M
etrics2
D
2.
- Add two
database
tables
l
ists2 and
m
etrics2
d
2.
- Remove the tables
G
raphs,
L
ists,
M
etrics1
D
,
M
etrics2
D
.
- Remove the tables
g
raphs,
l
ists,
m
etrics1
d
,
m
etrics2
d
.
- Remove the modules selector and report_objects.
- Remove the modules selector and report_objects.
- Add the modules dataframes, and report_tools.
- Add the modules
auth,
dataframes, and report_tools.
- Improve the UI
for
the filter
ing
of the history table, as well as
- Improve the UI
to
the filter of the history table, as well as
for the selector used by
reports.
selectors for
reports.
- Introduce the JavaScript widgets Summary and Graph.
- Introduce the JavaScript widgets Summary and Graph.
- Update the documentation.
- Update the documentation.
...
...
static/plugin_event/VERSION
View file @
869a656e
0.7.2
0.7.3
\ No newline at end of file
\ No newline at end of file
Prev
1
2
Next
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