Commit 66e13f78 authored by Łukasz Nowak's avatar Łukasz Nowak

Minimise transaction size during build.

parent 702b07e8
...@@ -50,17 +50,25 @@ ...@@ -50,17 +50,25 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n <value> <string>kw = {}\n
for business_process in [\n select_dict= {\'delivery_uid\': None}\n
portal.business_process_module.vifib_sale_business_process,\n kw.update(\n
portal.business_process_module.vifib_purchase_business_process]:\n portal_type=\'Simulation Movement\',\n
for link in business_process.contentValues(portal_type="Business Link"):\n select_dict=select_dict,\n
link.build()\n left_join_list=select_dict.keys(),\n
delivery_uid=None\n
)\n
\n
context.getPortalObject().portal_catalog.searchAndActivate(\n
method_id=\'SimulationMovement_buildVifib\',\n
activate_kw={\'tag\': tag, \'priority\': 4},\n
**kw\n
)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>*args, **kwargs</string> </value> <value> <string>tag, fixit, params</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>explanation = context.getExplanationValue()\n
\n
if context.getDelivery() is not None:\n
# movement build but not indexed, so do nothing\n
return\n
portal = context.getPortalObject()\n
for business_process in [\n
portal.business_process_module.vifib_sale_business_process,\n
portal.business_process_module.vifib_purchase_business_process]:\n
business_process.build(explanation)\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SimulationMovement_buildVifib</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
571 572
\ 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