Commit 7950d24e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cleanup: __init__() should return None.

parent 9ecdb1c3
......@@ -623,7 +623,7 @@ class ActivityTool (Folder, UniqueObject):
def __init__(self, id=None):
if id is None:
id = ActivityTool.id
return Folder.__init__(self, id)
Folder.__init__(self, id)
# Filter content (ZMI))
def filtered_meta_types(self, user=None):
......
......@@ -1975,7 +1975,7 @@ class RegisteredVersionPrioritySelectionTemplateItem(BaseTemplateItem):
class WorkflowTemplateItem(ObjectTemplateItem):
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
# recreated: all subobjects are discarded and must be reinstalled.
......
......@@ -64,7 +64,7 @@ class BaseTool (UniqueObject, Folder):
def __init__(self, id=None):
if id is None:
id = self.__class__.id
return Folder.__init__(self, id)
Folder.__init__(self, id)
# Filter content (ZMI))
def filtered_meta_types(self, user=None):
......
......@@ -1313,7 +1313,7 @@ def fortify():
def __init__(self, value, *args, **kw):
# this will raise TypeError if you try to cache a persistent object
dumps(value)
return self.__original_init__(value, *args, **kw)
self.__original_init__(value, *args, **kw)
CacheEntry.__init__ = __init__
# randomize priorities of activities in a deterministic way
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment