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
Aaron Chen
erp5
Commits
b63513ba
Commit
b63513ba
authored
Mar 26, 2013
by
Vincent Pelletier
Committed by
Kazuhiko Shiozaki
Mar 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move more code inside cached function.
parent
6913475f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
product/ERP5Type/patches/WorkflowTool.py
product/ERP5Type/patches/WorkflowTool.py
+11
-11
No files found.
product/ERP5Type/patches/WorkflowTool.py
View file @
b63513ba
...
@@ -470,8 +470,9 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
...
@@ -470,8 +470,9 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
if
worklist_dict
:
if
worklist_dict
:
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
is_anonymous
=
portal
.
portal_membership
.
isAnonymousUser
()
portal_url
=
portal
.
portal_url
()
portal_url
=
portal
.
portal_url
()
def
_getWorklistActionList
():
is_anonymous
=
portal
.
portal_membership
.
isAnonymousUser
()
portal_catalog
=
portal
.
portal_catalog
portal_catalog
=
portal
.
portal_catalog
search_result
=
getattr
(
self
,
"Base_getCountFromWorklistTable"
,
None
)
search_result
=
getattr
(
self
,
"Base_getCountFromWorklistTable"
,
None
)
use_cache
=
search_result
is
not
None
use_cache
=
search_result
is
not
None
...
@@ -482,7 +483,6 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
...
@@ -482,7 +483,6 @@ def WorkflowTool_listActions(self, info=None, object=None, src__=False):
select_expression_prefix
=
'count(*) as %s'
%
(
COUNT_COLUMN_TITLE
,
)
select_expression_prefix
=
'count(*) as %s'
%
(
COUNT_COLUMN_TITLE
,
)
getSecurityUidDictAndRoleColumnDict
=
\
getSecurityUidDictAndRoleColumnDict
=
\
portal_catalog
.
getSecurityUidDictAndRoleColumnDict
portal_catalog
.
getSecurityUidDictAndRoleColumnDict
def
_getWorklistActionList
():
worklist_result_dict
=
{}
worklist_result_dict
=
{}
sql_catalog
=
portal_catalog
.
getSQLCatalog
()
sql_catalog
=
portal_catalog
.
getSQLCatalog
()
# Get a list of dict of WorklistVariableMatchDict grouped by compatible
# Get a list of dict of WorklistVariableMatchDict grouped by compatible
...
...
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