Commit 2a3fa7cc authored by Vincent Pelletier's avatar Vincent Pelletier

Use boolean values instead of integers.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19266 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1655cb89
...@@ -687,8 +687,8 @@ class ActivityTool (Folder, UniqueObject): ...@@ -687,8 +687,8 @@ class ActivityTool (Folder, UniqueObject):
obj = self obj = self
for activity in activity_dict.itervalues(): for activity in activity_dict.itervalues():
if activity.hasActivity(aq_inner(self), obj, **kw): if activity.hasActivity(aq_inner(self), obj, **kw):
return 1 return True
return 0 return False
def getActivityBuffer(self, create_if_not_found=True): def getActivityBuffer(self, create_if_not_found=True):
""" """
......
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