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
c3109f1b
Commit
c3109f1b
authored
Aug 07, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_scalability_data: validate rules in portal_rules at init.
parent
8098a61b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/init_scalability.xml
...PathTemplateItem/portal_skins/custom/init_scalability.xml
+9
-2
bt5/erp5_scalability_data/bt/revision
bt5/erp5_scalability_data/bt/revision
+1
-1
No files found.
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/init_scalability.xml
View file @
c3109f1b
...
...
@@ -52,7 +52,6 @@
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
\n
\n
# Update roles\n
portal_type = portal.searchFolder(title=\'portal_types\')[0]\n
portal_type.searchFolder(title=\'Person\')[0].updateRoleMapping()\n
...
...
@@ -73,7 +72,6 @@ for i in xrange(0,350):\n
new_user.validate()\n
assignment = new_user.objectValues(portal_type=\'Assignment\')[0]\n
assignment.open()\n
return 1\n
\n
# Update roles\n
portal_type = portal.searchFolder(title=\'portal_types\')[0]\n
...
...
@@ -81,6 +79,15 @@ 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
# Validate rules in portal_rules\n
portal_rules = portal.portal_rules\n
for rule in portal_rules.searchFolder(validation_state = "draft"):\n
rule.validate()\n
\n
\n
# Return 1, at the end of the script.\n
return 1\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_scalability_data/bt/revision
View file @
c3109f1b
18
\ No newline at end of file
19
\ No newline at end of file
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