Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
ecd2e6f4
Commit
ecd2e6f4
authored
Jan 06, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve query (Minor performance improvement)
parent
f743bcbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wizard/ConfiguratorTool_getAvailableBusinessConfigurationList.xml
...onfiguratorTool_getAvailableBusinessConfigurationList.xml
+5
-4
bt5/erp5_configurator/bt/revision
bt5/erp5_configurator/bt/revision
+1
-1
No files found.
bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wizard/ConfiguratorTool_getAvailableBusinessConfigurationList.xml
View file @
ecd2e6f4
...
...
@@ -55,9 +55,10 @@
The business configurations without Resource and with the state of the related workflow\n
equals to \'End\' are just ignored.\n
"""\n
bc_list = context.business_configuration_module.searchFolder(portal_type="Business Configuration")\n
bc_list = [bc for bc in bc_list if bc.getResource() is not None and bc.getCurrentStateTitle() not in ("End",)]\n
\n
bc_list = list(context.business_configuration_module.searchFolder(\n
portal_type="Business Configuration",\n
simulation_state="draft", \n
resource = "%/workflow_module/%"))\n
bc_tuple_list = []\n
index = 0\n
while True:\n
...
...
@@ -66,7 +67,7 @@ while True:\n
return bc_tuple_list\n
else:\n
bc_tuple_list.append(tuple(part))\n
index
+=
3\n
index
+=
3\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_configurator/bt/revision
View file @
ecd2e6f4
527
\ No newline at end of file
528
\ 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