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
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
Alain Takoudjou
erp5
Commits
63e1a0b3
Commit
63e1a0b3
authored
May 04, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Site.py: remove the condition which check the type of workflow type.
parent
6a25a9d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+22
-22
No files found.
product/ERP5/ERP5Site.py
View file @
63e1a0b3
...
...
@@ -760,15 +760,16 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
def
getStateList
(
group
):
state_dict
=
{}
for
wf
in
self
.
portal_workflow
.
objectValues
():
if
wf
.
__class__
.
__name__
==
'Workflow'
:
for
state
in
wf
.
objectValues
(
portal_type
=
'State'
):
if
getattr
(
wf
,
'states'
,
None
):
# DC Workflow
for
state
in
wf
.
states
.
objectValues
():
if
group
in
getattr
(
state
,
'type_list'
,
()):
state_dict
[
'_'
.
join
(
state
.
getId
().
split
(
'_'
)[
1
:]
)]
=
None
state_dict
[
state
.
getId
(
)]
=
None
else
:
if
getattr
(
wf
,
'states'
,
None
):
for
state
in
wf
.
states
.
objectValues
(
):
if
group
in
getattr
(
state
,
'type_list'
,
()):
state_dict
[
state
.
getId
()]
=
None
# ERP5 Workflow
for
state
in
wf
.
objectValues
(
portal_type
=
'State'
):
if
group
in
getattr
(
state
,
'type_list'
,
()):
state_dict
[
state
.
getReference
()]
=
None
return
tuple
(
state_dict
.
keys
())
getStateList
=
CachingMethod
(
getStateList
,
...
...
@@ -1288,20 +1289,20 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
def
getStateList
():
state_dict
=
{}
for
wf
in
self
.
portal_workflow
.
objectValues
():
if
wf
.
__class__
.
__name__
==
'Workflow'
:
if
wf
.
objectValues
(
portal_type
=
'Variable'
)
and
\
wf
.
getStateVariable
()
==
'simulation_state'
:
if
wf
.
objectValues
(
portal_type
=
'State'
):
for
state
in
wf
.
objectValues
(
portal_type
=
'State'
):
if
getattr
(
state
,
'type_list'
,
None
):
state_dict
[
'_'
.
join
(
state
.
getId
().
split
(
'_'
)[
1
:]
)]
=
None
el
se
:
if
getattr
(
wf
,
'variables'
,
None
)
and
\
wf
.
variables
.
getStateVar
()
==
'simulation_state'
:
if
getattr
(
wf
,
'states'
,
None
):
for
state
in
wf
.
states
.
objectValues
(
):
if
getattr
(
state
,
'type_list'
,
None
):
state_dict
[
state
.
getId
()]
=
None
if
getattr
(
wf
,
'variables'
,
None
)
and
\
wf
.
variables
.
getStateVar
()
==
'simulation_state'
:
# DC Workflow
if
getattr
(
wf
,
'states'
,
None
):
for
state
in
wf
.
states
.
objectValues
(
):
if
getattr
(
state
,
'type_list'
,
None
):
state_dict
[
state
.
getId
(
)]
=
None
el
if
wf
.
objectValues
(
portal_type
=
'Variable'
)
and
\
wf
.
getStateVariable
()
==
'simulation_state'
:
# ERP5 Workflow
if
wf
.
objectValues
(
portal_type
=
'State'
):
for
state
in
wf
.
objectValues
(
portal_type
=
'State'
):
if
getattr
(
state
,
'type_list'
,
None
):
state_dict
[
state
.
getReference
()]
=
None
return
tuple
(
sorted
(
state_dict
.
keys
()))
getStateList
=
CachingMethod
(
getStateList
,
...
...
@@ -1719,7 +1720,6 @@ class PortalGenerator:
addCMFCoreTool
(
'CMF Skins Tool'
,
None
)
addCMFCoreTool
(
'CMF Undo Tool'
,
None
)
addCMFCoreTool
(
'CMF URL Tool'
,
None
)
#addCMFCoreTool('CMF Workflow Tool', None) # taken place by ERP5 Workflow Tool
addCMFDefaultTool
=
p
.
manage_addProduct
[
'CMFDefault'
].
manage_addTool
addCMFDefaultTool
(
'Default Discussion Tool'
,
None
)
...
...
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