Commit 2ce2ca94 authored by Nicolas Dumazet's avatar Nicolas Dumazet

add an optional id argument so that Tools follow the same __init__ signature...

add an optional id argument so that Tools follow the same __init__ signature as other Documents in ERP5. If id is not given, behavior is unchanged.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40161 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e080a97
......@@ -59,8 +59,10 @@ class BaseTool (UniqueObject, Folder):
manage_overview = DTMLFile( 'explainBaseTool', _dtmldir )
# Filter content (ZMI))
def __init__(self):
return Folder.__init__(self, self.__class__.id)
def __init__(self, id=None):
if id is None:
id = self.__class__.id
return Folder.__init__(self, id)
# Filter content (ZMI))
def filtered_meta_types(self, user=None):
......
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