Mercurial > libervia-pubsub
diff sat_pubsub/gateway.py @ 297:4115999d85e9
fixes behavior when maxItems is 0
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 10 Sep 2015 15:03:12 +0200 |
parents | 002c59dbc23f |
children | a776544d84e5 |
line wrap: on
line diff
--- a/sat_pubsub/gateway.py Thu Sep 10 15:02:03 2015 +0200 +++ b/sat_pubsub/gateway.py Thu Sep 10 15:03:12 2015 +0200 @@ -893,7 +893,7 @@ def items(self, xmppURI, maxItems=None): query = {'uri': xmppURI} - if maxItems: + if maxItems is not None: query['max_items'] = int(maxItems) f = getPageWithFactory(self._makeURI('items', query), method='GET',