Commit 8c9268c6 authored by Aurel's avatar Aurel

edit only if necessary

parent 9684678a
...@@ -52,16 +52,26 @@ ...@@ -52,16 +52,26 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>signature = state_change[\'object\']\n <value> <string>signature = state_change[\'object\']\n
\n \n
edit_kw = {}\n
\n
temporary_data = signature.getTemporaryData()\n temporary_data = signature.getTemporaryData()\n
if temporary_data is not None:\n if temporary_data is not None:\n
# This happens when we have sent the xml\n # This happens when we have sent the xml\n
# and we just get the confirmation\n # and we just get the confirmation\n
signature.setData(temporary_data)\n signature.setData(temporary_data)\n
signature.edit(force=False,\n edit_kw["temporary_data"] = None\n
temporary_data=None,\n \n
partial_data=None,\n if signature.isForce():\n
subscriber_xupdate=None,\n edit_kw["force"] = False\n
publisher_xupdate=None)\n if signature.hasPartialData():\n
edit_kw["partial_data"] = None\n
if signature.hasSubscriberXupdate():\n
edit_kw["subscriber_xupdate"] = None\n
if signature.hasPublisherXupdate():\n
edit_kw["publisher_xupdate"] = None\n
\n
if len(edit_kw):\n
signature.edit(**edit_kw)\n
\n \n
context.SyncMLSignature_resetConflictList(state_change)\n context.SyncMLSignature_resetConflictList(state_change)\n
</string> </value> </string> </value>
......
85 86
\ No newline at end of file \ No newline at end of file
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