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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
ee96a7fd
Commit
ee96a7fd
authored
Mar 11, 2013
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use tag for activities dependencies instead of method_id
parent
17e573cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
product/ERP5SyncML/Document/SyncMLSubscription.py
product/ERP5SyncML/Document/SyncMLSubscription.py
+2
-1
product/ERP5SyncML/Engine/EngineMixin.py
product/ERP5SyncML/Engine/EngineMixin.py
+1
-2
product/ERP5SyncML/Tool/SynchronizationTool.py
product/ERP5SyncML/Tool/SynchronizationTool.py
+1
-2
No files found.
product/ERP5SyncML/Document/SyncMLSubscription.py
View file @
ee96a7fd
...
...
@@ -1001,4 +1001,5 @@ class SyncMLSubscription(XMLObject):
method_kw
=
{
"no_conflict"
:
True
},
min_depth
=
1
,
max_depth
=
1
,
activate_kw
=
{
'priority'
:
ACTIVITY_PRIORITY
})
activate_kw
=
{
'priority'
:
ACTIVITY_PRIORITY
,
'tag'
:
"%s_reset"
%
self
.
getPath
()})
product/ERP5SyncML/Engine/EngineMixin.py
View file @
ee96a7fd
...
...
@@ -453,8 +453,7 @@ class EngineMixin(object):
if
subscriber
.
getIsActivityEnabled
():
subscriber
.
activate
(
activity
=
"SQLQueue"
,
after_method_id_list
=
(
"reset"
,
"_recurseCallMethod"
),
after_tag
=
"%s_reset"
%
subscriber
.
getPath
(),
# Wait for all reset to be done
# before starting sync
priority
=
ACTIVITY_PRIORITY
,
...
...
product/ERP5SyncML/Tool/SynchronizationTool.py
View file @
ee96a7fd
...
...
@@ -379,8 +379,7 @@ class SynchronizationTool(BaseTool):
# XXX This must depends on activity enables property, maybe use engine
if
subscription
.
getIsActivityEnabled
():
subscription
.
activate
(
after_method_id_list
=
(
"reset"
,
"_recurseCallMethod"
),
after_tag
=
"%s_reset"
%
(
subscription
.
getPath
(),),
activity
=
"SQLQueue"
,
priority
=
ACTIVITY_PRIORITY
,
tag
=
subscription
.
getRelativeUrl
()).
sendMessage
(
str
(
syncml_response
))
...
...
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