[zope2-tracker] [Bug 1236790] Re: ZCatalog : sortResults does not work anymore [critical]
Thomas Desvenain
1236790 at bugs.launchpad.net
Tue Oct 8 13:01:55 CEST 2013
489 def _limit_sequence(self, sequence, slen, b_start=0, b_size=None,
490 switched_reverse=False):
491 if b_size == 5:import pdb; pdb.set_trace()
492 -> if b_size is not None:
493 sequence = sequence[b_start:b_start + b_size]
494 if slen:
495 slen = len(sequence)
496 if switched_reverse:
497 sequence.reverse()
(Pdb) args
self = <Products.ZCatalog.Catalog.Catalog object at 0x83b7758>
sequence = [(1078782419, [-664698048, -664698046, -664698044, 1157005748, 1157005750, 1157005751, 1157005752, 1157005753, 1157005754, 1157005755, 1157005756, 1157005757, 1157005758, 1157005759, 1157005760, 1157005761, 1157005762, 1157005763, 1157005764, 1157005765, 1157005766, 1157005767, 1157005768], <bound method Catalog.__getitem__ of <Products.ZCatalog.Catalog.Catalog object at 0x83b7758>>)]
slen = 23
b_start = 0
b_size = 5
switched_reverse = False
...
493: sequence[b_start:b_start + b_size] -> this is not accurate
--
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1236790
Title:
ZCatalog : sortResults does not work anymore [critical]
To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1236790/+subscriptions
More information about the zope2-tracker
mailing list