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
e4469978
Commit
e4469978
authored
Feb 21, 2017
by
LE GAC Renaud
Browse files
Simplify the database schema for the table lists2.
parent
4d796360
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
docs/db_schema/database.png
docs/db_schema/database.png
+0
-0
docs/db_schema/database.xml
docs/db_schema/database.xml
+4
-3
modules/plugin_event/model_report.py
modules/plugin_event/model_report.py
+6
-1
modules/plugin_event/ui_report.py
modules/plugin_event/ui_report.py
+4
-8
No files found.
docs/db_schema/database.png
View replaced file @
4d796360
View file @
e4469978
173 KB
|
W:
|
H:
177 KB
|
W:
|
H:
2-up
Swipe
Onion skin
docs/db_schema/database.xml
View file @
e4469978
...
...
@@ -358,9 +358,10 @@
<row
name=
"source"
null=
"0"
autoincrement=
"0"
>
<datatype>
string
</datatype>
</row>
<row
name=
"kwargs"
null=
"1"
autoincrement=
"0"
>
<datatype>
string
</datatype>
<default>
NULL
</default></row>
<row
name=
"id_events"
null=
"0"
autoincrement=
"0"
>
<datatype>
integer
</datatype>
<relation
table=
"events"
row=
"id"
/>
</row>
<row
name=
"transform"
null=
"1"
autoincrement=
"0"
>
<datatype>
string
</datatype>
<default>
NULL
</default></row>
...
...
modules/plugin_event/model_report.py
View file @
e4469978
...
...
@@ -190,7 +190,12 @@ class Report(object):
Field
(
"title"
,
"string"
,
length
=
255
),
Field
(
"definition"
,
"text"
),
Field
(
"source"
,
"string"
,
length
=
255
,
notnull
=
True
),
Field
(
"kwargs"
,
"text"
),
Field
(
"id_events"
,
"reference events"
,
default
=
dbui
.
UNDEF_ID
,
label
=
"Event"
),
Field
(
"transform"
,
"text"
),
Field
(
"group_field"
,
...
...
modules/plugin_event/ui_report.py
View file @
e4469978
...
...
@@ -217,11 +217,6 @@ class ReportUi(object):
language
=
"json"
,
xtype
=
"xaceeditorfield"
)
mdf
.
configure_field
(
"kwargs"
,
editorHeight
=
220
,
language
=
"json"
,
xtype
=
"xaceeditorfield"
)
mdf
.
configure_field
(
"sorters"
,
height
=
210
,
hideHeader
=
True
,
...
...
@@ -245,7 +240,7 @@ class ReportUi(object):
title
=
T
(
"General"
))
mdf
.
merge_fields
(
"source"
,
"
kwarg
s"
,
"
id_event
s"
,
title
=
T
(
"Source"
))
mdf
.
merge_fields
(
"transform"
,
...
...
@@ -270,14 +265,15 @@ class ReportUi(object):
#
mdf
=
gridModifier
(
"lists2"
)
mdf
.
configure_column
(
"name"
,
width
=
30
)
mdf
.
hide_columns
(
"title"
,
"columns"
,
mdf
.
hide_columns
(
"columns"
,
"conditions"
,
"features"
,
"group_field"
,
"id_events"
,
"kwargs"
,
"sorters"
,
"source"
,
"title"
,
"transform"
)
#.....................................................................
...
...
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