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
Xiaowu Zhang
erp5
Commits
a4d10997
Commit
a4d10997
authored
May 03, 2018
by
Tomáš Peterka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[hal_json_style] Cleanup usage of **kw
parent
7c93301a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/Workflow_statusModify.py
...portal_skins/erp5_hal_json_style/Workflow_statusModify.py
+2
-3
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/Workflow_statusModify.xml
...ortal_skins/erp5_hal_json_style/Workflow_statusModify.xml
+1
-1
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/Workflow_statusModify.py
View file @
a4d10997
...
...
@@ -5,7 +5,7 @@ from Products.ERP5Type.Message import translateString
from
Products.ERP5Type.Log
import
log
,
WARNING
portal
=
context
.
getPortalObject
()
request
=
kw
.
get
(
"REQUEST"
,
None
)
or
context
.
REQUEST
request
=
REQUEST
or
context
.
REQUEST
form
=
getattr
(
context
,
dialog_id
)
...
...
@@ -90,7 +90,6 @@ else:
message
=
request
.
get
(
'portal_status_message'
)
if
message
is
None
:
message
=
translateString
(
'Status changed.'
)
kw
.
clear
()
# useful ?
# Allow to redirect to another document
redirect_document_path
=
request
.
get
(
'redirect_document_path'
,
None
)
...
...
@@ -101,4 +100,4 @@ else:
redirect_document
=
context
return
redirect_document
.
Base_redirect
(
form_id
,
keep_items
=
{
'portal_status_message'
:
message
}
,
**
kw
)
keep_items
=
{
'portal_status_message'
:
message
})
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/Workflow_statusModify.xml
View file @
a4d10997
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
form_id, dialog_id, **kw
</string>
</value>
<value>
<string>
form_id, dialog_id,
REQUEST=None,
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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