[Zope-dev] ZCatalog sorting issue
Martijn Jacobs
martijn at fourdigits.nl
Thu Jul 10 09:06:53 EDT 2008
Wat denk je hiervan?
Hello.
In zope 2.10.5 (and probably 2.10.6 and 2.11 and, as I've read, all
releases above 2.7) we've encountered a sorting bug in a dtml-in call
when querying the catalog. I don't think it's dtml only related, but I'm
not sure about that. It is the same bug as found on :
https://bugs.launchpad.net/zope2/+bug/143504
Adding
def __cmp__(self, other): return 0
to
Products.ZCatalog.CatalogBrains.AbstractCatalogBrain
seems to correct the problem though and I was wondering why this isn't
added in the zope core. Does it break other stuff or should the problem
fixed somewhere else? Somebody has some thoughts?
Regards,
Martijn
--
Martijn Jacobs
Four Digits, Internet Solutions
a: Willemsplein 15-1 6811 KB Arnhem NL
kvk: 091621370000 | btw: 8161.22.234.B01
e-mail: martijn at fourdigits.nl | web: http://www.fourdigits.nl
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117
More information about the Zope-Dev
mailing list