Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
7f894075
Commit
7f894075
authored
Jan 20, 2021
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity.Activity.SQLBase: Improve _getExecutableMessageSet documentation.
parent
a4b168ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
product/CMFActivity/Activity/SQLBase.py
product/CMFActivity/Activity/SQLBase.py
+8
-2
No files found.
product/CMFActivity/Activity/SQLBase.py
View file @
7f894075
...
...
@@ -446,9 +446,12 @@ CREATE TABLE %s (
# There are 2 types of dependencies:
# - monovalued (most), which accepts a single value and a vector of
# values.
# -
2
-valued (after_path_and_method_id and after_tag_and_method_id)
# which accept a
2
-vector, each item being a single value or a vector
# -
n
-valued (after_path_and_method_id and after_tag_and_method_id)
# which accept a
n
-vector, each item being a single value or a vector
# of values.
# Convert every form into its vector equivalent form, ignoring
# conditions which cannot match any activity, and (for n-valued)
# enumerate all possible combinations for later reverse-lookup.
if
len
(
column_list
)
==
1
:
dependency_value_list
=
[
x
...
...
@@ -460,9 +463,12 @@ CREATE TABLE %s (
)
else
dependency_value
)
# None values cannot match any activity, ignore them.
if
x
is
not
None
]
else
:
# Note: it any resulting item ends up empty (ex: it only contained
# None), product will return an empty list.
dependency_value_list
=
list
(
product
(
*
(
(
(
x
,
)
...
...
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