From 1fb7bc02f94acbb8e1c68e63cd2d6f584a35f53c Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Wed, 2 Mar 2011 09:13:51 +0000 Subject: [PATCH] Fix indentation git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43874 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/CMFCategory/CategoryTool.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py index e39d5d8444..c199d43488 100644 --- a/product/CMFCategory/CategoryTool.py +++ b/product/CMFCategory/CategoryTool.py @@ -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 -- 2.30.9