Commit 7ed7c0db authored by Vincent Pelletier's avatar Vincent Pelletier

CMFActivity.Activity.SQLQueue: Simplify _hasDependency.

parent 35a22887
......@@ -260,15 +260,11 @@ CREATE TABLE %s (
" message) VALUES\n(%s)")
_insert_separator = "),\n("
def _hasDependency(
self,
message,
_DEPENDENCY_NAME_SET=frozenset(_DEPENDENCY_TESTER_DICT),
):
def _hasDependency(self, message):
get = message.activity_kw.get
return any(
get(x) is not None
for x in _DEPENDENCY_NAME_SET
for x in _DEPENDENCY_TESTER_DICT
)
def prepareQueueMessageList(self, activity_tool, message_list):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment