Commit 1490b05e authored by Benjamin Blanc's avatar Benjamin Blanc

erp5_scalability_data: put forcing usage of random id in a dedicated script

parent 04b7181b
......@@ -81,12 +81,6 @@ portal_type.searchFolder(title=\'Person\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Product\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Organisation\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Sale Trade Condition\')[0].updateRoleMapping()\n
\n
# Set id gen\n
portal.portal_simulation.setIdGenerator("_generatePerDayId")\n
portal.web_page_module.setIdGenerator("_generatePerDayId")\n
portal.sale_order_module.setIdGenerator("_generatePerDayId")\n
portal.person_module.setIdGenerator("_generatePerDayId")\n
</string> </value>
</item>
<item>
......
<?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>portal = context.getPortalObject()\n
\n
# Set id generator\n
portal.portal_simulation.setIdGenerator("_generatePerDayId")\n
portal.web_page_module.setIdGenerator("_generatePerDayId")\n
portal.sale_order_module.setIdGenerator("_generatePerDayId")\n
portal.person_module.setIdGenerator("_generatePerDayId")\n
\n
return 1\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>use_random_id_scalability</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
17
\ No newline at end of file
18
\ No newline at end of file
......@@ -2,6 +2,7 @@ portal_preferences/scalability_preference
portal_skins/custom/init_scalability
portal_skins/custom/update_roles_scalability
portal_skins/custom/apply_load_balancing_scalability
portal_skins/custom/use_random_id_scalability
organisation_module/idexen
organisation_module/idexen/**
person_module/scalability_user
......
......@@ -12,6 +12,7 @@ portal_preferences/scalability_preference
portal_skins/custom/apply_load_balancing_scalability
portal_skins/custom/init_scalability
portal_skins/custom/update_roles_scalability
portal_skins/custom/use_random_id_scalability
product_module/blue_led
product_module/blue_led/*
product_module/green_led
......
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