Commit 19a0e85c authored by Sebastien Robin's avatar Sebastien Robin

forgot to call checkActivities

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13948 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 862db0ed
...@@ -109,7 +109,7 @@ if no_balance_check:\n ...@@ -109,7 +109,7 @@ if no_balance_check:\n
serialize_dict = {}\n serialize_dict = {}\n
\n \n
activity_tool = context.portal_activities\n activity_tool = context.portal_activities\n
def checkActivities(line,source_counter):\n def checkActivities(source_counter):\n
if activity_tool.countMessageWithTag(source_counter):\n if activity_tool.countMessageWithTag(source_counter):\n
msg = Message(domain=\'ui\', message="There are operations pending for this vault that prevent form calculating its position. Please try again later.")\n msg = Message(domain=\'ui\', message="There are operations pending for this vault that prevent form calculating its position. Please try again later.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
...@@ -127,6 +127,7 @@ for line in line_list :\n ...@@ -127,6 +127,7 @@ for line in line_list :\n
serialize_dict[source_counter] = 1\n serialize_dict[source_counter] = 1\n
source_object = context.portal_categories.getCategoryValue(source_counter)\n source_object = context.portal_categories.getCategoryValue(source_counter)\n
source_object.serialize()\n source_object.serialize()\n
checkActivities(source_counter)\n
# Reindex this line with this particular source_counter tag\n # Reindex this line with this particular source_counter tag\n
activate_kw = {\'tag\':source_counter}\n activate_kw = {\'tag\':source_counter}\n
line.reindexObject(activate_kw=activate_kw)\n line.reindexObject(activate_kw=activate_kw)\n
......
185 187
\ 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