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

example added


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@187 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf5d3dcf
......@@ -114,3 +114,20 @@ class Renderer(Filter):
elif self.sort_id is not None:
value_list.sort(lambda x,y: cmp(x.getProperty(self.sort_id), y.getProperty(self.sort_id)))
"""
for b in catalog_search:
if display_id is None:
v = base + b.relative_url
result += [(v,v)]
else:
try:
o = b.getObject()
v = getattr(o, display_id)()
result += [(v,base + b.relative_url)]
except:
LOG('WARNING: CategoriesTool',0, 'Unable to call %s on %s' % (display_id, b))
if sort_id is not None:
result.sort()
"""
\ No newline at end of file
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