Description of problem: $ bodhi -l0 -t security and $ bodhi -l-0 -t security Yield HTTP Error 500: Internal error HTTP Error 500: Internal error $ $ bodhi -l-1 -t security ... 259 updates found (258 shown) $ It would be desirable if any these meant "no limit".
Toshio filed a ticket upstream that contains a patch to fix this: http://trac.turbogears.org/ticket/1629
I disagree with that patch. Setting pagination to 0 should return no items at all. It would be usable to just get the number of items in list. I suggest that -1 be used instead.
-1 already has a meaning to paginate: it means all elements except the last one. Similarly, -2 means all but the last two, etc.
Toshio: I noticed that. Still it makes little sense to me -- why would one want that? I thought it is just a side effect of python array slicing.
There's plans to make it mean last page, -2, second from last, etc, which is better: http://groups.google.com/group/turbogears/browse_thread/thread/751f9013caf40801/37f25aca364ecd21?lnk=gst&q=paginate#37f25aca364ecd21 In any case, negative numbers are allocated to an upstream "feature" whereas 0 is currently an upstream bug.
Sorry. Wrong tg_paginate variable being referenced in that thread. Feel free to propose a different patch upstream.
No need to. I am happy with the current one and your explanation.
I just pushed out a new version of TurboGears with Toshio's paginate patch, which should resolve this issue.
bodhi-0.4.8-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update bodhi'
bodhi-0.4.8-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update bodhi'
bodhi-0.4.8-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
bodhi-0.4.8-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.