Commit 88b9591a authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed non-working isMemberOf method.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3002 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 340a8bb7
...@@ -367,7 +367,7 @@ class Category(Folder): ...@@ -367,7 +367,7 @@ class Category(Folder):
""" """
if strict: if strict:
if self.getRelativeUrl().find(category) >= 0: if self.getRelativeUrl().find(category) >= 0:
if len(category) == len(self.getRelativeUrl()) + len(self.getRelativeUrl().find(category)): if len(self.getRelativeUrl()) == len(category) + self.getRelativeUrl().find(category):
return 1 return 1
else: else:
if self.getRelativeUrl().find(category) >= 0: if self.getRelativeUrl().find(category) >= 0:
......
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