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
deb778b0
Commit
deb778b0
authored
Apr 30, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Site.py: Load ERP5 Workflow Tool to built the site instead of loading CMF Workflow Tool.
parent
9ae8b97a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
317 deletions
+4
-317
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/ERP5WorkflowTool_viewWorkflowList/interaction_workflows.xml
...P5WorkflowTool_viewWorkflowList/interaction_workflows.xml
+0
-157
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/ERP5WorkflowTool_viewWorkflowList/workflows.xml
..._workflow/ERP5WorkflowTool_viewWorkflowList/workflows.xml
+0
-157
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+4
-3
No files found.
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/ERP5WorkflowTool_viewWorkflowList/interaction_workflows.xml
deleted
100644 → 0
View file @
9ae8b97a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
columns
</string>
<string>
editable_columns
</string>
<string>
hide_rows_on_no_search_criterion
</string>
<string>
portal_types
</string>
<string>
selection_name
</string>
<string>
sort
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
interaction_workflows
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<list>
<tuple>
<string>
reference
</string>
<string>
Reference
</string>
</tuple>
<tuple>
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
description
</string>
<string>
Description
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_list_mode_listbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
hide_rows_on_no_search_criterion
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<value>
<list>
<tuple>
<string>
Interaction Workflow
</string>
<string>
Interaction Workflow
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string>
interaction_workflow_selection
</string>
</value>
</item>
<item>
<key>
<string>
sort
</string>
</key>
<value>
<list>
<tuple>
<string>
reference
</string>
<string>
Reference
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Interaction Workflows
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/ERP5WorkflowTool_viewWorkflowList/workflows.xml
deleted
100644 → 0
View file @
9ae8b97a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
columns
</string>
<string>
editable_columns
</string>
<string>
hide_rows_on_no_search_criterion
</string>
<string>
portal_types
</string>
<string>
selection_name
</string>
<string>
sort
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
workflows
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
columns
</string>
</key>
<value>
<list>
<tuple>
<string>
reference
</string>
<string>
Reference
</string>
</tuple>
<tuple>
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
description
</string>
<string>
Description
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_list_mode_listbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
hide_rows_on_no_search_criterion
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<value>
<list>
<tuple>
<string>
Workflow
</string>
<string>
Workflow
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
selection_name
</string>
</key>
<value>
<string>
portal_workflow_selection
</string>
</value>
</item>
<item>
<key>
<string>
sort
</string>
</key>
<value>
<list>
<tuple>
<string>
reference
</string>
<string>
Reference
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Workflows
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/ERP5Site.py
View file @
deb778b0
...
...
@@ -763,7 +763,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
if
wf
.
__class__
.
__name__
==
'Workflow'
:
for
state
in
wf
.
objectValues
(
portal_type
=
'State'
):
if
group
in
getattr
(
state
,
'type_list'
,
()):
state_dict
[
'_'
.
join
(
state
.
getId
().
split
(
'_'
)[
:
-
1
])]
=
None
state_dict
[
'_'
.
join
(
state
.
getId
().
split
(
'_'
)[
1
:
])]
=
None
else
:
if
getattr
(
wf
,
'states'
,
None
):
for
state
in
wf
.
states
.
objectValues
():
...
...
@@ -1294,7 +1294,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
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
state_dict
[
'_'
.
join
(
state
.
getId
().
split
(
'_'
)[
1
:
])]
=
None
else
:
if
getattr
(
wf
,
'variables'
,
None
)
and
\
wf
.
variables
.
getStateVar
()
==
'simulation_state'
:
...
...
@@ -1719,7 +1719,7 @@ class PortalGenerator:
addCMFCoreTool
(
'CMF Skins Tool'
,
None
)
addCMFCoreTool
(
'CMF Undo Tool'
,
None
)
addCMFCoreTool
(
'CMF URL Tool'
,
None
)
addCMFCoreTool
(
'CMF Workflow 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
)
...
...
@@ -1925,6 +1925,7 @@ class ERP5Generator(PortalGenerator):
addERP5Tool
(
p
,
'portal_password'
,
'Password Tool'
)
addERP5Tool
(
p
,
'portal_introspections'
,
'Introspection Tool'
)
addERP5Tool
(
p
,
'portal_acknowledgements'
,
'Acknowledgement Tool'
)
addERP5Tool
(
p
,
'portal_workflow'
,
'ERP5 Workflow Tool'
)
# Add ERP5Type Tool
addERP5Tool
(
p
,
'portal_caches'
,
'Cache Tool'
)
...
...
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