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
Nikola Balog
erp5
Commits
7950d24e
Commit
7950d24e
authored
Oct 28, 2015
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: __init__() should return None.
parent
9ecdb1c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+1
-1
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+1
-1
product/ERP5Type/Tool/BaseTool.py
product/ERP5Type/Tool/BaseTool.py
+1
-1
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+1
-1
No files found.
product/CMFActivity/ActivityTool.py
View file @
7950d24e
...
@@ -623,7 +623,7 @@ class ActivityTool (Folder, UniqueObject):
...
@@ -623,7 +623,7 @@ class ActivityTool (Folder, UniqueObject):
def
__init__
(
self
,
id
=
None
):
def
__init__
(
self
,
id
=
None
):
if
id
is
None
:
if
id
is
None
:
id
=
ActivityTool
.
id
id
=
ActivityTool
.
id
return
Folder
.
__init__
(
self
,
id
)
Folder
.
__init__
(
self
,
id
)
# Filter content (ZMI))
# Filter content (ZMI))
def
filtered_meta_types
(
self
,
user
=
None
):
def
filtered_meta_types
(
self
,
user
=
None
):
...
...
product/ERP5/Document/BusinessTemplate.py
View file @
7950d24e
...
@@ -1975,7 +1975,7 @@ class RegisteredVersionPrioritySelectionTemplateItem(BaseTemplateItem):
...
@@ -1975,7 +1975,7 @@ class RegisteredVersionPrioritySelectionTemplateItem(BaseTemplateItem):
class
WorkflowTemplateItem
(
ObjectTemplateItem
):
class
WorkflowTemplateItem
(
ObjectTemplateItem
):
def
__init__
(
self
,
id_list
,
tool_id
=
'portal_workflow'
,
**
kw
):
def
__init__
(
self
,
id_list
,
tool_id
=
'portal_workflow'
,
**
kw
):
return
ObjectTemplateItem
.
__init__
(
self
,
id_list
,
tool_id
=
tool_id
,
**
kw
)
ObjectTemplateItem
.
__init__
(
self
,
id_list
,
tool_id
=
tool_id
,
**
kw
)
# When the root object of a workflow is modified, the entire workflow is
# When the root object of a workflow is modified, the entire workflow is
# recreated: all subobjects are discarded and must be reinstalled.
# recreated: all subobjects are discarded and must be reinstalled.
...
...
product/ERP5Type/Tool/BaseTool.py
View file @
7950d24e
...
@@ -64,7 +64,7 @@ class BaseTool (UniqueObject, Folder):
...
@@ -64,7 +64,7 @@ class BaseTool (UniqueObject, Folder):
def
__init__
(
self
,
id
=
None
):
def
__init__
(
self
,
id
=
None
):
if
id
is
None
:
if
id
is
None
:
id
=
self
.
__class__
.
id
id
=
self
.
__class__
.
id
return
Folder
.
__init__
(
self
,
id
)
Folder
.
__init__
(
self
,
id
)
# Filter content (ZMI))
# Filter content (ZMI))
def
filtered_meta_types
(
self
,
user
=
None
):
def
filtered_meta_types
(
self
,
user
=
None
):
...
...
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
7950d24e
...
@@ -1313,7 +1313,7 @@ def fortify():
...
@@ -1313,7 +1313,7 @@ def fortify():
def
__init__
(
self
,
value
,
*
args
,
**
kw
):
def
__init__
(
self
,
value
,
*
args
,
**
kw
):
# this will raise TypeError if you try to cache a persistent object
# this will raise TypeError if you try to cache a persistent object
dumps
(
value
)
dumps
(
value
)
return
self
.
__original_init__
(
value
,
*
args
,
**
kw
)
self
.
__original_init__
(
value
,
*
args
,
**
kw
)
CacheEntry
.
__init__
=
__init__
CacheEntry
.
__init__
=
__init__
# randomize priorities of activities in a deterministic way
# randomize priorities of activities in a deterministic way
...
...
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