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
Show 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):
stop (date): is fixed to DATE_MAX when not defined
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
# extract database information
...
...
@@ -377,7 +377,7 @@ def get_items(**kwargs):
* one column for each key of the history.data dictionary
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
# database query including foreign table
...
...
@@ -565,7 +565,7 @@ def get_items_small(**kwargs):
* one column for each key of the history.data dictionary
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
# database query
...
...
@@ -715,7 +715,7 @@ def get_objectlike_items(**kwargs):
* one column for each key of the history.data dictionary
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
# database query including foreign table
...
...
@@ -890,7 +890,7 @@ def get_peoplelike_items(**kwargs):
* one column for each key of the history.data dictionary
"""
db
=
current
.
globalenv
[
'db'
]
db
=
current
.
db
history
=
db
.
history
# database query including foreign table
...
...
modules/plugin_event/model_report.py
View file @
869a656e
...
...
@@ -7,7 +7,7 @@ import numpy as np
from
callbacks
import
ON_CREATE_LISTS2
,
ON_UPDATE_LISTS2
from
event
import
Event
from
gluon
import
current
,
IS_IN_SET
from
gluon
import
IS_IN_SET
from
pydal
import
Field
...
...
@@ -94,7 +94,7 @@ class Report(object):
pyDAL.Table
"""
migrate
=
current
.
globalenv
[
"MIGRATE"
]
migrate
=
db
.
_migrate
or
db
.
_migrate_enabled
table
=
db
.
define_table
(
"lists2"
,
...
...
modules/plugin_event/report_tools.py
View file @
869a656e
...
...
@@ -140,7 +140,7 @@ class BaseReport(object):
"""
T
=
current
.
T
db
=
current
.
globalenv
[
"db"
]
db
=
current
.
db
config
=
self
.
config
selector
=
self
.
selector
...
...
@@ -428,8 +428,8 @@ class List(BaseReport):
"""
def
__init__
(
self
,
id_list
):
db
=
current
.
globalenv
[
"db"
]
virtdb
=
current
.
globalenv
[
"
virtdb
"
]
db
=
current
.
db
virtdb
=
current
.
virtdb
BaseReport
.
__init__
(
self
,
...
...
@@ -558,8 +558,8 @@ class Metric2D(BaseReport):
"""
def
__init__
(
self
,
id_report
):
db
=
current
.
globalenv
[
"db"
]
virtdb
=
current
.
globalenv
[
"
virtdb
"
]
db
=
current
.
db
virtdb
=
current
.
virtdb
BaseReport
.
__init__
(
self
,
...
...
@@ -770,7 +770,7 @@ class Source(BaseReport):
"""
def
__init__
(
self
,
name
):
virtdb
=
current
.
globalenv
[
"
virtdb
"
]
virtdb
=
current
.
virtdb
BaseReport
.
__init__
(
self
,
...
...
modules/plugin_event/ui_core.py
View file @
869a656e
...
...
@@ -15,8 +15,9 @@ storeModifier = dbui.StoreModifier
class
CoreUi
(
object
):
@
staticmethod
def
define
(
db
,
T
):
"""Tune the user interface for the history table and its foreign tables,
def
configure
(
db
,
T
):
"""Configure the user interface for the history table and
its foreign tables,
Args:
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.
class
ReportUi
(
object
):
@
staticmethod
def
defin
e
(
db
,
T
):
"""
Tun
e the user interface for the report tables
:
lists
, metrics1d,
metrics2d
and graphs
.
def
configur
e
(
db
,
T
):
"""
Configur
e the user interface for the report tables lists
and
metrics2d.
Args:
db (pyDAL.DAL): database connection
...
...
modules/plugin_event/ui_selector.py
View file @
869a656e
...
...
@@ -16,8 +16,8 @@ storeModifier = dbui.StoreModifier
class
SelectorUi
(
object
):
@
staticmethod
def
defin
e
(
virtdb
,
db
,
T
):
"""
Tun
e the user interface for
the
selector.
def
configur
e
(
virtdb
,
db
,
T
):
"""
Configur
e the user interface for selector
s
.
Args:
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
class
ViewportUi
(
object
):
@
staticmethod
def
defin
e
(
db
,
T
,
virtdb
):
def
configur
e
(
db
,
T
,
virtdb
):
"""Configure the viewport.
Args:
...
...
static/plugin_event/CHANGELOG
View file @
869a656e
...
...
@@ -2,16 +2,16 @@
HEAD
0.7.
2
(Apr 2017)
0.7.
3
(Apr 2017)
- Major release which is non backward compatible.
It introduces new mechanisms for the reporting based on pandas.DataFrame.
- Required plugin_dbui 0.9.8 or higher.
- Add two tables
L
ists2 and
M
etrics2
D
2.
- Remove the tables
G
raphs,
L
ists,
M
etrics1
D
,
M
etrics2
D
.
- 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 modules selector and report_objects.
- Add the modules dataframes, and report_tools.
- Improve the UI
for
the filter
ing
of the history table, as well as
for the selector used by
reports.
- Add the modules
auth,
dataframes, and report_tools.
- Improve the UI
to
the filter of the history table, as well as
selectors for
reports.
- Introduce the JavaScript widgets Summary and Graph.
- Update the documentation.
...
...
static/plugin_event/VERSION
View file @
869a656e
0.7.2
\ No newline at end of file
0.7.3
\ 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