Commit dd84987f authored by Jean-Paul Smets's avatar Jean-Paul Smets

Better use of space / tabs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16733 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73a2f6f9
...@@ -235,14 +235,14 @@ class Category(Folder): ...@@ -235,14 +235,14 @@ class Category(Folder):
WARNING: using these parameters can slow down WARNING: using these parameters can slow down
significantly, because this is written in Python significantly, because this is written in Python
local_sort_method - When using the default preorder traversal, use local_sort_method - When using the default preorder traversal, use
this function to sort objects of the same depth. this function to sort objects of the same depth.
local_sort_id - When using the default preorder traversal, sort local_sort_id - When using the default preorder traversal, sort
objects of the same depth by comparing their objects of the same depth by comparing their
'local_sort_id' property. 'local_sort_id' property.
Renderer parameters are also supported here. Renderer parameters are also supported here.
""" """
if is_self_excluded or ( if is_self_excluded or (
...@@ -251,7 +251,7 @@ class Category(Folder): ...@@ -251,7 +251,7 @@ class Category(Folder):
value_list = [] value_list = []
else: else:
value_list = [self] value_list = [self]
child_value_list = self.objectValues(self.allowed_types) child_value_list = self.objectValues(self.allowed_types)
if local_sort_id: if local_sort_id:
local_sort_method = lambda a, b: cmp(a.getProperty(local_sort_id, 0), local_sort_method = lambda a, b: cmp(a.getProperty(local_sort_id, 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