Commit 7b1fd45c authored by Nicolas Delaby's avatar Nicolas Delaby

Use more zopish API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37014 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7704dbc7
...@@ -362,7 +362,7 @@ class ContributionTool(BaseTool): ...@@ -362,7 +362,7 @@ class ContributionTool(BaseTool):
new_id = module.generateNewId() new_id = module.generateNewId()
else: else:
new_id = id new_id = id
existing_document = module.get(new_id, None) existing_document = module._getOb(new_id, None)
if existing_document is None: if existing_document is None:
# There is no preexisting document - we can therefore # There is no preexisting document - we can therefore
# set the new object # set the new object
......
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