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
8b2abc26
Commit
8b2abc26
authored
Aug 18, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: use ActionInformation property sheet instead of actbox_xxx properties
parent
6529a0f1
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
20 additions
and
151 deletions
+20
-151
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view.xml
...mplateItem/portal_skins/erp5_workflow/Transition_view.xml
+4
-4
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_action.xml
.../portal_skins/erp5_workflow/Transition_view/my_action.xml
+0
-0
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_action_name.xml
...al_skins/erp5_workflow/Transition_view/my_action_name.xml
+0
-0
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_action_type.xml
...al_skins/erp5_workflow/Transition_view/my_action_type.xml
+1
-1
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_icon.xml
...em/portal_skins/erp5_workflow/Transition_view/my_icon.xml
+0
-0
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/ActionInformation/action_name_property.xml
...roperty_sheets/ActionInformation/action_name_property.xml
+5
-7
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Transition/actbox_category_property.xml
...l_property_sheets/Transition/actbox_category_property.xml
+0
-40
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Transition/actbox_name_property.xml
...ortal_property_sheets/Transition/actbox_name_property.xml
+0
-40
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Transition/actbox_url_property.xml
...portal_property_sheets/Transition/actbox_url_property.xml
+0
-46
product/ERP5Workflow/Document/Transition.py
product/ERP5Workflow/Document/Transition.py
+1
-4
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+5
-5
product/ERP5Workflow/Tool/WorkflowTool.py
product/ERP5Workflow/Tool/WorkflowTool.py
+4
-4
No files found.
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view.xml
View file @
8b2abc26
...
@@ -90,10 +90,10 @@
...
@@ -90,10 +90,10 @@
<string>
my_id
</string>
<string>
my_id
</string>
<string>
my_reference
</string>
<string>
my_reference
</string>
<string>
my_title
</string>
<string>
my_title
</string>
<string>
my_act
box
_name
</string>
<string>
my_act
ion
_name
</string>
<string>
my_act
box_url
</string>
<string>
my_act
ion
</string>
<string>
my_
actbox_
icon
</string>
<string>
my_icon
</string>
<string>
my_act
box_category
</string>
<string>
my_act
ion_type
</string>
<string>
my_trigger_type
</string>
<string>
my_trigger_type
</string>
<string>
my_destination
</string>
<string>
my_destination
</string>
</list>
</list>
...
...
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_act
box_url
.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_act
ion
.xml
View file @
8b2abc26
File moved
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_act
box
_name.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_act
ion
_name.xml
View file @
8b2abc26
File moved
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_act
box_category
.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_act
ion_type
.xml
View file @
8b2abc26
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_act
box_category
</string>
</value>
<value>
<string>
my_act
ion_type
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
message_values
</string>
</key>
<key>
<string>
message_values
</string>
</key>
...
...
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_
actbox_
icon.xml
→
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Transition_view/my_icon.xml
View file @
8b2abc26
File moved
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/
Transition/actbox_icon
_property.xml
→
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/
ActionInformation/action_name
_property.xml
View file @
8b2abc26
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
action_name
</string>
</value>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<value>
...
@@ -22,18 +26,12 @@
...
@@ -22,18 +26,12 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
act
box_icon
_property
</string>
</value>
<value>
<string>
act
ion_name
_property
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
<value>
<string>
Standard Property
</string>
</value>
</item>
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Transition/actbox_category_property.xml
deleted
100644 → 0
View file @
6529a0f1
<?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/Transition/actbox_name_property.xml
deleted
100644 → 0
View file @
6529a0f1
<?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/Transition/actbox_url_property.xml
deleted
100644 → 0
View file @
6529a0f1
<?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/Transition.py
View file @
8b2abc26
...
@@ -61,10 +61,6 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
...
@@ -61,10 +61,6 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
isRADContent
=
1
isRADContent
=
1
trigger_type
=
TRIGGER_USER_ACTION
#zwj: type is int 0, 1, 2
trigger_type
=
TRIGGER_USER_ACTION
#zwj: type is int 0, 1, 2
guard
=
None
guard
=
None
actbox_name
=
''
actbox_url
=
''
actbox_icon
=
''
actbox_category
=
'workflow'
var_exprs
=
None
# A mapping.
var_exprs
=
None
# A mapping.
default_reference
=
''
default_reference
=
''
# Declarative security
# Declarative security
...
@@ -80,6 +76,7 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
...
@@ -80,6 +76,7 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
PropertySheet
.
Reference
,
PropertySheet
.
Reference
,
PropertySheet
.
Transition
,
PropertySheet
.
Transition
,
PropertySheet
.
Guard
,
PropertySheet
.
Guard
,
PropertySheet
.
ActionInformation
,
)
)
def
getGuardSummary
(
self
):
def
getGuardSummary
(
self
):
...
...
product/ERP5Workflow/Document/Workflow.py
View file @
8b2abc26
...
@@ -310,18 +310,18 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
...
@@ -310,18 +310,18 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
for
tid
in
sdef
.
getDestinationIdList
():
for
tid
in
sdef
.
getDestinationIdList
():
tdef
=
self
.
_getOb
(
id
=
tid
)
tdef
=
self
.
_getOb
(
id
=
tid
)
if
tdef
is
not
None
and
tdef
.
getTriggerType
()
==
TRIGGER_USER_ACTION
and
\
if
tdef
is
not
None
and
tdef
.
getTriggerType
()
==
TRIGGER_USER_ACTION
and
\
tdef
.
getAct
box
Name
()
and
self
.
_checkTransitionGuard
(
tdef
,
document
):
tdef
.
getAct
ion
Name
()
and
self
.
_checkTransitionGuard
(
tdef
,
document
):
if
fmt_data
is
None
:
if
fmt_data
is
None
:
fmt_data
=
TemplateDict
()
fmt_data
=
TemplateDict
()
fmt_data
.
_push
(
info
)
fmt_data
.
_push
(
info
)
fmt_data
.
_push
({
'transition_id'
:
tdef
.
getReference
()})
fmt_data
.
_push
({
'transition_id'
:
tdef
.
getReference
()})
res
.
append
((
tid
,
{
res
.
append
((
tid
,
{
'id'
:
tdef
.
getReference
(),
'id'
:
tdef
.
getReference
(),
'name'
:
tdef
.
getAct
box
Name
()
%
fmt_data
,
'name'
:
tdef
.
getAct
ion
Name
()
%
fmt_data
,
'url'
:
str
(
tdef
.
getAct
boxUrl
())
%
fmt_data
,
'url'
:
str
(
tdef
.
getAct
ion
())
%
fmt_data
,
'icon'
:
str
(
tdef
.
get
Actbox
Icon
())
%
fmt_data
,
'icon'
:
str
(
tdef
.
getIcon
())
%
fmt_data
,
'permissions'
:
(),
# Predetermined.
'permissions'
:
(),
# Predetermined.
'category'
:
tdef
.
getAct
boxCategory
(),
'category'
:
tdef
.
getAct
ionType
(),
'transition'
:
tdef
}))
'transition'
:
tdef
}))
fmt_data
.
_pop
()
fmt_data
.
_pop
()
res
.
sort
()
res
.
sort
()
...
...
product/ERP5Workflow/Tool/WorkflowTool.py
View file @
8b2abc26
...
@@ -318,10 +318,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
...
@@ -318,10 +318,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
transition
.
setTitle
(
tdef
.
title
)
transition
.
setTitle
(
tdef
.
title
)
transition
.
setReference
(
tdef
.
id
)
transition
.
setReference
(
tdef
.
id
)
transition
.
setTriggerType
(
tdef
.
trigger_type
)
transition
.
setTriggerType
(
tdef
.
trigger_type
)
transition
.
setAct
boxCategory
(
tdef
.
actbox_category
)
transition
.
setAct
ionType
(
tdef
.
actbox_category
)
transition
.
set
Actbox
Icon
(
tdef
.
actbox_icon
)
transition
.
setIcon
(
tdef
.
actbox_icon
)
transition
.
setAct
box
Name
(
tdef
.
actbox_name
)
transition
.
setAct
ion
Name
(
tdef
.
actbox_name
)
transition
.
setAct
boxUrl
(
tdef
.
actbox_url
)
transition
.
setAct
ion
(
tdef
.
actbox_url
)
transition
.
setDescription
(
tdef
.
description
)
transition
.
setDescription
(
tdef
.
description
)
before_script_path
=
getERP5ScriptPath
(
workflow
,
dc_workflow
,
before_script_path
=
getERP5ScriptPath
(
workflow
,
dc_workflow
,
...
...
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