Commit 7c9dd81a authored by Aurel's avatar Aurel

serialize destination vault thus we can't do many import at the same time

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 984cb78a
...@@ -81,6 +81,10 @@ if destination_id is None:\n ...@@ -81,6 +81,10 @@ if destination_id is None:\n
msg = Message(domain=\'ui\', message=\'Sorry, you must define the site\')\n msg = Message(domain=\'ui\', message=\'Sorry, you must define the site\')\n
raise ValidationFailed, (msg, )\n raise ValidationFailed, (msg, )\n
\n \n
# serialize destination vault to only have one operation at a time\n
destination_value = context.getDestinationValue()\n
destination_value.serialize()\n
\n
# first check that there is not a particular tag\n # first check that there is not a particular tag\n
checkbook_reception_tag = "CheckbookReception_%s" % destination_id\n checkbook_reception_tag = "CheckbookReception_%s" % destination_id\n
if context.portal_activities.countMessageWithTag(checkbook_reception_tag) != 0:\n if context.portal_activities.countMessageWithTag(checkbook_reception_tag) != 0:\n
...@@ -158,6 +162,7 @@ if create==1:\n ...@@ -158,6 +162,7 @@ if create==1:\n
<string>destination_id</string> <string>destination_id</string>
<string>None</string> <string>None</string>
<string>msg</string> <string>msg</string>
<string>destination_value</string>
<string>checkbook_reception_tag</string> <string>checkbook_reception_tag</string>
<string>line_list</string> <string>line_list</string>
<string>encountered_check_identifiers_dict</string> <string>encountered_check_identifiers_dict</string>
......
332 333
\ 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