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
2187f671
Commit
2187f671
authored
Mar 14, 2013
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix elif position in code
parent
440ef7b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5SyncML/Document/SyncMLSubscription.py
product/ERP5SyncML/Document/SyncMLSubscription.py
+4
-4
No files found.
product/ERP5SyncML/Document/SyncMLSubscription.py
View file @
2187f671
...
...
@@ -673,10 +673,6 @@ class SyncMLSubscription(XMLObject):
finished
=
False
xml_string
=
signature
.
getFirstPdataChunk
(
MAX_LEN
)
xml_string
=
etree
.
CDATA
(
xml_string
.
decode
(
'utf-8'
))
elif
signature
.
getValidationState
()
in
(
'syncing'
,
'synchronized'
):
raise
ValueError
(
"Must not get signature in %s state here, signature is %s"
%
(
signature
.
getValidationState
(),
signature
.
getPath
(),))
syncml_response
.
addSyncCommand
(
sync_command
=
signature
.
getPartialAction
(),
...
...
@@ -687,6 +683,10 @@ class SyncMLSubscription(XMLObject):
if
not
more_data
:
signature
.
doSync
()
elif
signature
.
getValidationState
()
in
(
'syncing'
,
'synchronized'
):
raise
ValueError
(
"Must not get signature in %s state here, signature is %s"
%
(
signature
.
getValidationState
(),
signature
.
getPath
(),))
if
not
more_data
:
pass
...
...
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