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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
erp5
Commits
1af3e662
Commit
1af3e662
authored
Oct 30, 2012
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mass Workflow Action: prevent the default 1000 limit
parent
8493bb16
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml
...em/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml
+2
-1
product/ERP5/bootstrap/erp5_core/bt/revision
product/ERP5/bootstrap/erp5_core/bt/revision
+1
-1
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml
View file @
1af3e662
...
@@ -114,6 +114,7 @@ selection_uid_list = portal.portal_selections.getSelectionCheckedUidsFor(selecti
...
@@ -114,6 +114,7 @@ selection_uid_list = portal.portal_selections.getSelectionCheckedUidsFor(selecti
selection_params = portal.portal_selections.getSelectionParamsFor(selection_name).copy()\n
selection_params = portal.portal_selections.getSelectionParamsFor(selection_name).copy()\n
selection_params[choosen_action[\'state_var\']] = choosen_action[\'workflow_state\']\n
selection_params[choosen_action[\'state_var\']] = choosen_action[\'workflow_state\']\n
selection_params[\'portal_type\'] = choosen_action[\'portal_type\']\n
selection_params[\'portal_type\'] = choosen_action[\'portal_type\']\n
selection_params[\'limit\'] = None\n
if selection_uid_list:\n
if selection_uid_list:\n
selection_params[\'uid\'] = selection_uid_list\n
selection_params[\'uid\'] = selection_uid_list\n
\n
\n
...
@@ -121,7 +122,7 @@ path_list = [brain.path for brain in\n
...
@@ -121,7 +122,7 @@ path_list = [brain.path for brain in\n
portal.portal_selections.callSelectionFor(selection_name, params=selection_params)]\n
portal.portal_selections.callSelectionFor(selection_name, params=selection_params)]\n
\n
\n
batch_size = 100 # XXX\n
batch_size = 100 # XXX\n
priority = 2 # XXX
\n
priority = 2 # XXX\n
path_list_len = len(path_list)\n
path_list_len = len(path_list)\n
\n
\n
for i in xrange(0, path_list_len, batch_size):\n
for i in xrange(0, path_list_len, batch_size):\n
...
...
product/ERP5/bootstrap/erp5_core/bt/revision
View file @
1af3e662
41049
41050
\ No newline at end of file
\ 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