Commit 34e5c497 authored by Łukasz Nowak's avatar Łukasz Nowak

Allow to use transaction locking.

DeliveryLine_updateAppliedRule shall not be called in same transaction many times, as there is no transaction safe locking implemented in this method.
parent 89f8d6a6
...@@ -65,6 +65,7 @@ if len(uid_list) > 0:\n ...@@ -65,6 +65,7 @@ if len(uid_list) > 0:\n
portal.portal_catalog.searchAndActivate(\n portal.portal_catalog.searchAndActivate(\n
uid=uid_list,\n uid=uid_list,\n
activate_kw=activate_kw,\n activate_kw=activate_kw,\n
packet_size=1, # Separate calls to many transactions\n
method_id=\'DeliveryLine_updateAppliedRule\',\n method_id=\'DeliveryLine_updateAppliedRule\',\n
method_kw={\'activate_kw\': activate_kw, \'kw\': {\'activate_kw\': activate_kw}},\n method_kw={\'activate_kw\': activate_kw, \'kw\': {\'activate_kw\': activate_kw}},\n
)\n )\n
......
...@@ -77,6 +77,7 @@ uid_list = list(uid_list)\n ...@@ -77,6 +77,7 @@ uid_list = list(uid_list)\n
if len(uid_list) > 0:\n if len(uid_list) > 0:\n
portal.portal_catalog.searchAndActivate(\n portal.portal_catalog.searchAndActivate(\n
uid=uid_list,\n uid=uid_list,\n
packet_size=1, # Separate calls to many transactions\n
activate_kw=activate_kw,\n activate_kw=activate_kw,\n
method_id=\'DeliveryLine_updateAppliedRule\',\n method_id=\'DeliveryLine_updateAppliedRule\',\n
method_kw={\'activate_kw\': activate_kw, \'kw\': {\'activate_kw\': activate_kw}},\n method_kw={\'activate_kw\': activate_kw, \'kw\': {\'activate_kw\': activate_kw}},\n
......
422 423
\ 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