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
alecs_myu
erp5
Commits
4f09471c
Commit
4f09471c
authored
Jul 30, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_scalability_data: add script init
parent
40aca005
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/init_scalability.xml
...PathTemplateItem/portal_skins/custom/init_scalability.xml
+10
-2
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
-1
bt5/erp5_scalability_data/bt/template_path_list
bt5/erp5_scalability_data/bt/template_path_list
+1
-1
No files found.
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/
clone_scalability_user
.xml
→
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/
init_scalability
.xml
View file @
4f09471c
...
...
@@ -51,9 +51,17 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
\n
# Update roles\n
portal_type = portal.searchFolder(title=\'portal_types\')[0]\n
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
# Clone users\n
module = context.person_module\n
my_user = module.scalability_user\n
\n
for i in xrange(0,50):\n
new_user = my_user.Base_createCloneDocument(batch_mode=1)\n
name = \'scalability_user_%d\' %i\n
...
...
@@ -73,7 +81,7 @@ return 1\n
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
clone_scalability_user
</string>
</value>
<value>
<string>
init_scalability
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_scalability_data/bt/revision
View file @
4f09471c
10
\ No newline at end of file
11
\ No newline at end of file
bt5/erp5_scalability_data/bt/template_keep_path_list
View file @
4f09471c
portal_skins/custom/
clone_scalability_user
portal_skins/custom/
init_scalability
organisation_module/idexen
organisation_module/idexen/**
person_module/scalability_user
...
...
bt5/erp5_scalability_data/bt/template_path_list
View file @
4f09471c
...
...
@@ -8,7 +8,7 @@ person_module/john_rock
person_module/john_rock/*
person_module/scalability_user
person_module/scalability_user/*
portal_skins/custom/
clone_scalability_user
portal_skins/custom/
init_scalability
product_module/blue_led
product_module/blue_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