Commit 55d6d170 authored by Jérome Perrin's avatar Jérome Perrin

support base to be passed as a boolean, not int


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38299 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec75d41f
...@@ -362,8 +362,10 @@ class Category(Folder): ...@@ -362,8 +362,10 @@ class Category(Folder):
recursive - if set to 1, list recursively recursive - if set to 1, list recursively
""" """
if base == 0 or base is None: base = '' # Make sure we get a meaningful base if not base:
if base == 1: base = self.getBaseCategoryId() + '/' # Make sure we get a meaningful base base = '' # Make sure we get a meaningful base
if base:
base = self.getBaseCategoryId() + '/' # Make sure we get a meaningful base
url_list = [] url_list = []
for value in self.getCategoryChildValueList(recursive=recursive, for value in self.getCategoryChildValueList(recursive=recursive,
checked_permission=checked_permission): checked_permission=checked_permission):
......
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