Commit 1fb7bc02 authored by Nicolas Delaby's avatar Nicolas Delaby

Fix indentation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43874 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd038575
......@@ -574,13 +574,13 @@ class CategoryTool( UniqueObject, Folder, Base ):
membership.append(path[len(category)+1:])
else:
try:
o = self.unrestrictedTraverse(path)
# LOG('getCategoryMembershipList',0,str(o.portal_type))
if o.portal_type in spec:
if base:
membership.append(path)
else:
membership.append(path[len(category)+1:])
o = self.unrestrictedTraverse(path)
# LOG('getCategoryMembershipList',0,str(o.portal_type))
if o.portal_type in spec:
if base:
membership.append(path)
else:
membership.append(path[len(category)+1:])
except KeyError:
LOG('WARNING: CategoriesTool',0, 'Unable to find object for path %s' % path)
# We must include parent if specified explicitely
......
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