Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bryan Kaperick
erp5
Commits
1490b05e
Commit
1490b05e
authored
Aug 06, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_scalability_data: put forcing usage of random id in a dedicated script
parent
04b7181b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
7 deletions
+78
-7
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/init_scalability.xml
...PathTemplateItem/portal_skins/custom/init_scalability.xml
+0
-6
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/use_random_id_scalability.xml
...ateItem/portal_skins/custom/use_random_id_scalability.xml
+75
-0
bt5/erp5_scalability_data/bt/revision
bt5/erp5_scalability_data/bt/revision
+1
-1
bt5/erp5_scalability_data/bt/template_keep_path_list
bt5/erp5_scalability_data/bt/template_keep_path_list
+1
-0
bt5/erp5_scalability_data/bt/template_path_list
bt5/erp5_scalability_data/bt/template_path_list
+1
-0
No files found.
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/init_scalability.xml
View file @
1490b05e
...
@@ -81,12 +81,6 @@ portal_type.searchFolder(title=\'Person\')[0].updateRoleMapping()\n
...
@@ -81,12 +81,6 @@ portal_type.searchFolder(title=\'Person\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Product\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Product\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Organisation\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Organisation\')[0].updateRoleMapping()\n
portal_type.searchFolder(title=\'Sale Trade Condition\')[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>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/use_random_id_scalability.xml
0 → 100644
View file @
1490b05e
<?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>
bt5/erp5_scalability_data/bt/revision
View file @
1490b05e
17
18
\ No newline at end of file
\ No newline at end of file
bt5/erp5_scalability_data/bt/template_keep_path_list
View file @
1490b05e
...
@@ -2,6 +2,7 @@ portal_preferences/scalability_preference
...
@@ -2,6 +2,7 @@ portal_preferences/scalability_preference
portal_skins/custom/init_scalability
portal_skins/custom/init_scalability
portal_skins/custom/update_roles_scalability
portal_skins/custom/update_roles_scalability
portal_skins/custom/apply_load_balancing_scalability
portal_skins/custom/apply_load_balancing_scalability
portal_skins/custom/use_random_id_scalability
organisation_module/idexen
organisation_module/idexen
organisation_module/idexen/**
organisation_module/idexen/**
person_module/scalability_user
person_module/scalability_user
...
...
bt5/erp5_scalability_data/bt/template_path_list
View file @
1490b05e
...
@@ -12,6 +12,7 @@ portal_preferences/scalability_preference
...
@@ -12,6 +12,7 @@ portal_preferences/scalability_preference
portal_skins/custom/apply_load_balancing_scalability
portal_skins/custom/apply_load_balancing_scalability
portal_skins/custom/init_scalability
portal_skins/custom/init_scalability
portal_skins/custom/update_roles_scalability
portal_skins/custom/update_roles_scalability
portal_skins/custom/use_random_id_scalability
product_module/blue_led
product_module/blue_led
product_module/blue_led/*
product_module/blue_led/*
product_module/green_led
product_module/green_led
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment