Commit 10d96c08 authored by Andreas Jung's avatar Andreas Jung

- Fixed bad interaction between ZCatalog and dtml-in (submitted by

        Steve Alexander)
parent cf90a93b
......@@ -112,6 +112,9 @@ Zope Changes
- Collector #2561: XXBucket.values() returned keys instead of values
- Fixed the API docs for user objects.
- Fixed bad interaction between ZCatalog and dtml-in (submitted by
Steve Alexander)
Zope 2.4 beta 2
......
......@@ -673,7 +673,9 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
if (type(so) is type('') and
lower(so) in ('reverse', 'descending')):
r.reverse()
r=LazyCat(map(lambda i: i[1], r), len(r))
r=map(lambda i: i[1], r)
r=LazyCat(r, reduce(lambda x,y: x+len(y), r, 0))
return r
......
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