Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
d9b1c21c
Commit
d9b1c21c
authored
Nov 12, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Worklist.py: deploy property accessors as many as possible.
parent
aca169cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5Workflow/Document/Worklist.py
product/ERP5Workflow/Document/Worklist.py
+4
-4
No files found.
product/ERP5Workflow/Document/Worklist.py
View file @
d9b1c21c
...
...
@@ -109,7 +109,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
res = []
res.append(self.getParentValue().getStateVariable())
for vdef in self.getParentValue().contentValues(portal_type="Variable"):
if vdef.
for_catalog
:
if vdef.
getForCatalog()
:
res.append(vdef.getId())
for vdef in self.objectValues():
res.append(vdef.getId())
...
...
@@ -140,16 +140,16 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
variable_id = variable_value.getId()
workflow_variable_id_list.append(variable_id)
worklist_variable_value = self._getOb(variable_id, None)
if worklist_variable_value is None and variable_value.
for_catalog
== 1 and variable_id not in default_variable_id_list:
if worklist_variable_value is None and variable_value.
getForCatalog()
== 1 and variable_id not in default_variable_id_list:
variable_value_ref = variable_value.getReference()
worklist_variable_value = self.newContent(portal_type='
Worklist
Variable
')
worklist_variable_value.setReference(variable_value_ref)
worklist_variable_value.setDefaultExpr(variable_value.getDefaultExpr())
worklist_variable_value.setInitialValue(variable_value.getInitialValue())
res.append(worklist_variable_value)
if worklist_variable_value and worklist_variable_value not in res and variable_value.
for_catalog
== 1:
if worklist_variable_value and worklist_variable_value not in res and variable_value.
getForCatalog()
== 1:
res.append(worklist_variable_value)
if worklist_variable_value in res and variable_value.
for_catalog
== 0:
if worklist_variable_value in res and variable_value.
getForCatalog()
== 0:
self._delObject(variable_id)
res.remove(worklist_variable_value)
...
...
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