Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kasra Jamshidi
erp5
Commits
c3109f1b
Commit
c3109f1b
authored
12 years ago
by
Benjamin Blanc
Browse files
Options
Download
Email Patches
Plain Diff
erp5_scalability_data: validate rules in portal_rules at init.
parent
8098a61b
scalability-master2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/init_scalability.xml
+9
-2
...PathTemplateItem/portal_skins/custom/init_scalability.xml
bt5/erp5_scalability_data/bt/revision
+1
-1
bt5/erp5_scalability_data/bt/revision
with
10 additions
and
3 deletions
+10
-3
bt5/erp5_scalability_data/PathTemplateItem/portal_skins/custom/init_scalability.xml
+
9
-
2
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>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_scalability_data/bt/revision
+
1
-
1
View file @
c3109f1b
18
\ No newline at end of file
19
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help