Commit 781d6ae6 authored by Nicolas Delaby's avatar Nicolas Delaby

Small optimisation to improve redability


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45574 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent acca4eb9
......@@ -823,11 +823,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
if getattr(aq_base(context), 'categories', _marker) is not _marker:
for category_url in self._getCategoryList(context):
try:
index = category_url.index('/')
my_base_category = category_url[:index]
except ValueError:
my_base_category = category_url
my_base_category = category_url.split('/', 1)[0]
if my_base_category == base_category:
#LOG("getSingleCategoryMembershipList",0,"%s %s %s %s" % (context.getRelativeUrl(),
# my_base_category, base_category, category_url))
......
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