]> git.ipfire.org Git - thirdparty/patchwork.git/commit
xmlrpc: Treat negative max_count as meaning "return last N results"
authorAdam Jackson <ajax@redhat.com>
Mon, 30 Nov 2015 19:59:45 +0000 (14:59 -0500)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 8 Feb 2016 18:46:30 +0000 (18:46 +0000)
commit16ff40d48afaa041046617a2faf7b3150c3126eb
tree05f5776aa372c772298b0536cecccc659f2c6054
parent16680f811b8cb6fcd7243aa1c883675b4b63539a
xmlrpc: Treat negative max_count as meaning "return last N results"

This is most useful when listing patches, as it lets you get the most
recent results instead of the oldest.

v2: Resolve "Negative indexing is not supported." issue and include
    unit tests to ensure this doesn't regress. Bump API version to
    1.2

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/bin/pwclient
patchwork/tests/test_xmlrpc.py
patchwork/views/xmlrpc.py