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
Alexander Emmerich
erp5
Commits
4f1fe433
Commit
4f1fe433
authored
Jul 17, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WorkflowScript.py, patches/PythonScript.py, ERP5Site.py: clean up.
parent
c907ad07
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+1
-0
product/ERP5Type/patches/PythonScript.py
product/ERP5Type/patches/PythonScript.py
+1
-1
product/ERP5Workflow/Document/WorkflowScript.py
product/ERP5Workflow/Document/WorkflowScript.py
+0
-6
No files found.
product/ERP5/ERP5Site.py
View file @
4f1fe433
...
...
@@ -2186,6 +2186,7 @@ class ERP5Generator(PortalGenerator):
def
setup
(
self
,
p
,
create_userfolder
,
**
kw
):
update
=
kw
.
get
(
'update'
,
0
)
if
getattr
(
p
,
'setDefaultSorting'
,
None
)
is
not
None
:
p
.
setDefaultSorting
(
'id'
,
0
)
...
...
product/ERP5Type/patches/PythonScript.py
View file @
4f1fe433
...
...
@@ -51,7 +51,7 @@ PythonScript.manage_main = manage_editForm
PythonScript
.
manage_editDocument
=
manage_editForm
PythonScript
.
manage_editForm
=
manage_editForm
# following methods are
design
for showAsXML function:
# following methods are
necessary
for showAsXML function:
def
pyscript_getBody
(
self
):
return
self
.
_body
def
pyscript_getParams
(
self
):
...
...
product/ERP5Workflow/Document/WorkflowScript.py
View file @
4f1fe433
...
...
@@ -52,16 +52,10 @@ class WorkflowScript(PythonScript, IdAsReferenceMixin("script_", "prefix")):
,
PropertySheet
.
WorkflowScript
)
def
__init__
(
self
,
*
args
,
**
kw
):
PythonScript
.
__init__
(
self
,
*
args
,
**
kw
)
def
__call__
(
self
):
r_url
=
self
.
REQUEST
.
get
(
'URL'
)
return
self
.
REQUEST
.
RESPONSE
.
redirect
(
r_url
+
'/view'
)
execute
=
PythonScript
.
__call__
# We need to take __setstate__ from PythonScript in order to
# generate _v_ft attributes which is necessary to run the script
__setstate__
=
PythonScript
.
__setstate__
InitializeClass
(
WorkflowScript
)
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