Commit a7b7c799 authored by Nicolas Dumazet's avatar Nicolas Dumazet

ERP5 API expects document constructors to take at least one id parameter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00a643ee
......@@ -536,8 +536,10 @@ class ActivityTool (Folder, UniqueObject):
LOG('ActivityTool', 0, real_SQLDict_setPriority(src__=1, **kw))
return real_SQLDict_setPriority(**kw)
def __init__(self):
return Folder.__init__(self, ActivityTool.id)
def __init__(self, id=None):
if id is None:
id = ActivityTool.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