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
iv
erp5
Commits
d08bf04b
Commit
d08bf04b
authored
Aug 18, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: use ActionInformation property sheet in Worklists
parent
baf3565d
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
191 deletions
+22
-191
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view.xml
...TemplateItem/portal_skins/erp5_workflow/Worklist_view.xml
+4
-4
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_action.xml
...em/portal_skins/erp5_workflow/Worklist_view/my_action.xml
+1
-1
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_action_name.xml
...rtal_skins/erp5_workflow/Worklist_view/my_action_name.xml
+1
-1
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_action_type.xml
...rtal_skins/erp5_workflow/Worklist_view/my_action_type.xml
+1
-1
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_icon.xml
...Item/portal_skins/erp5_workflow/Worklist_view/my_icon.xml
+1
-1
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_category_property.xml
...tal_property_sheets/Worklist/actbox_category_property.xml
+0
-40
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_icon_property.xml
.../portal_property_sheets/Worklist/actbox_icon_property.xml
+0
-40
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_name_property.xml
.../portal_property_sheets/Worklist/actbox_name_property.xml
+0
-40
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_url_property.xml
...m/portal_property_sheets/Worklist/actbox_url_property.xml
+0
-46
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+9
-9
product/ERP5Workflow/Document/Worklist.py
product/ERP5Workflow/Document/Worklist.py
+1
-4
product/ERP5Workflow/Tool/WorkflowTool.py
product/ERP5Workflow/Tool/WorkflowTool.py
+4
-4
No files found.
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view.xml
View file @
d08bf04b
...
...
@@ -95,10 +95,10 @@
<string>
my_matched_simulation_state_list
</string>
<string>
my_matched_validation_state_list
</string>
<string>
my_matched_causality_state
</string>
<string>
my_act
box
_name
</string>
<string>
my_act
box_url
</string>
<string>
my_
actbox_
icon
</string>
<string>
my_act
box_category
</string>
<string>
my_act
ion
_name
</string>
<string>
my_act
ion
</string>
<string>
my_icon
</string>
<string>
my_act
ion_type
</string>
</list>
</value>
</item>
...
...
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_act
box_url
.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_act
ion
.xml
View file @
d08bf04b
...
...
@@ -18,7 +18,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_act
box_url
</string>
</value>
<value>
<string>
my_act
ion
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_act
box
_name.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_act
ion
_name.xml
View file @
d08bf04b
...
...
@@ -17,7 +17,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_act
box
_name
</string>
</value>
<value>
<string>
my_act
ion
_name
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_act
box_category
.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_act
ion_type
.xml
View file @
d08bf04b
...
...
@@ -17,7 +17,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_act
box_category
</string>
</value>
<value>
<string>
my_act
ion_type
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_
actbox_
icon.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Worklist_view/my_icon.xml
View file @
d08bf04b
...
...
@@ -17,7 +17,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_
actbox_
icon
</string>
</value>
<value>
<string>
my_icon
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_category_property.xml
deleted
100644 → 0
View file @
baf3565d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
actbox_category_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_icon_property.xml
deleted
100644 → 0
View file @
baf3565d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
actbox_icon_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_name_property.xml
deleted
100644 → 0
View file @
baf3565d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
actbox_name_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Worklist/actbox_url_property.xml
deleted
100644 → 0
View file @
baf3565d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
actbox_url_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
<item>
<key>
<string>
property_default
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5Workflow/Document/Workflow.py
View file @
d08bf04b
...
...
@@ -355,13 +355,13 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
security_manager
=
getSecurityManager
()
workflow_id
=
self
.
getId
()
workflow_title
=
self
.
getTitle
()
for
worklist_
definition
in
self
.
getWorklistValueList
():
action_box_name
=
worklist_
definition
.
getActbox
Name
()
guard
=
worklist_
definition
.
getGuard
()
for
worklist_
value
in
self
.
getWorklistValueList
():
action_box_name
=
worklist_
value
.
getAction
Name
()
guard
=
worklist_
value
.
getGuard
()
if
action_box_name
:
variable_match
=
{}
for
key
in
worklist_
definition
.
getVarMatchKeys
():
var
=
worklist_
definition
.
getVarMatch
(
key
)
for
key
in
worklist_
value
.
getVarMatchKeys
():
var
=
worklist_
value
.
getVarMatch
(
key
)
if
isinstance
(
var
,
Expression
):
evaluated_value
=
var
(
createExprContext
(
StateChangeInfo
(
portal
,
self
,
kwargs
=
info
.
__dict__
.
copy
())))
...
...
@@ -397,15 +397,15 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
fmt_data
.
_push
({
k
:
(
'&%s:list='
%
k
).
join
(
v
)
for
\
k
,
v
in
variable_match
.
iteritems
()})
worklist_id
=
worklist_
definition
.
getReference
()
worklist_id
=
worklist_
value
.
getReference
()
variable_match
[
WORKLIST_METADATA_KEY
]
=
{
'format_data'
:
fmt_data
,
'worklist_title'
:
action_box_name
,
'worklist_id'
:
worklist_id
,
'workflow_title'
:
workflow_title
,
'workflow_id'
:
workflow_id
,
'action
_box_url'
:
worklist_definition
.
getActboxUrl
(),
'action_
box_category'
:
worklist_definition
.
getActboxCategory
()}
'action
'
:
worklist_value
.
getAction
(),
'action_
type'
:
worklist_value
.
getActionType
()}
variable_match_dict
[
worklist_id
]
=
variable_match
...
...
@@ -931,7 +931,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
worklist_list
=
self
.
objectValues
(
portal_type
=
'Worklist'
)
worklist_prop_id_to_show
=
[
'description'
,
'matched_portal_type_list'
,
'matched_validation_state_list'
,
'matched_simulation_state_list'
,
'act
box_category'
,
'actbox_name'
,
'actbox_url'
,
'actbox_
icon'
,
'act
ion_type'
,
'action_name'
,
'action'
,
'
icon'
,
'roles'
,
'groups'
,
'permissions'
,
'expr'
]
for
qdef
in
worklist_list
:
worklist_reference_list
.
append
(
qdef
.
getReference
())
...
...
product/ERP5Workflow/Document/Worklist.py
View file @
d08bf04b
...
...
@@ -57,10 +57,6 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
description = ''
var_matches = [] # Compared with catalog when set.
matched_portal_type = ''
actbox_name = ''
actbox_url = ''
actbox_icon = ''
actbox_category = '
global
'
guard = None
default_reference = ''
# Declarative security
...
...
@@ -76,6 +72,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
PropertySheet.Reference,
PropertySheet.Worklist,
PropertySheet.Guard,
PropertySheet.ActionInformation,
)
def getGuardSummary(self):
...
...
product/ERP5Workflow/Tool/WorkflowTool.py
View file @
d08bf04b
...
...
@@ -425,10 +425,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
else
:
worklist_variable_value
.
setVariableValue
(
values
[
0
])
#XXX(WORKFLOW): to be changed
worklist
.
setAct
boxUrl
(
qdef
.
actbox_url
)
worklist
.
setAct
boxCategory
(
qdef
.
actbox_category
)
worklist
.
set
Actbox
Icon
(
qdef
.
actbox_icon
)
worklist
.
setAct
box
Name
(
qdef
.
actbox_name
)
worklist
.
setAct
ion
(
qdef
.
actbox_url
)
worklist
.
setAct
ionType
(
qdef
.
actbox_category
)
worklist
.
setIcon
(
qdef
.
actbox_icon
)
worklist
.
setAct
ion
Name
(
qdef
.
actbox_name
)
# configure guard
if
qdef
.
guard
:
worklist
.
guard
=
qdef
.
guard
...
...
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