Commit 9d942771 authored by Aurel's avatar Aurel

add missing parenthesis at creation if trahs tool


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28ccff68
...@@ -2613,7 +2613,7 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -2613,7 +2613,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
trash_tool = getToolByName(self, 'portal_trash', None) trash_tool = getToolByName(self, 'portal_trash', None)
# always created a trash bin because we may to save object already present # always created a trash bin because we may to save object already present
# but not in a previous business templates apart at creation of a new site # but not in a previous business templates apart at creation of a new site
if trash_tool is not None and len(object_to_update) > 0 or len(self.portal_templates.objectIds()) > 1: if trash_tool is not None and (len(object_to_update) > 0 or len(self.portal_templates.objectIds()) > 1):
trashbin = trash_tool.newTrashBin(self.getTitle(), self) trashbin = trash_tool.newTrashBin(self.getTitle(), self)
else: else:
trashbin = None trashbin = 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