changeset 16:4629645a368d

tmp (wokkel): fixes RSM when maxItems is 0
author souliane <souliane@mailoo.org>
date Thu, 10 Sep 2015 15:04:16 +0200
parents 9019d6cbaf0e
children fd6957dfa8c6
files wokkel/rsm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wokkel/rsm.py	Thu Sep 10 09:07:32 2015 +0200
+++ b/wokkel/rsm.py	Thu Sep 10 15:04:16 2015 +0200
@@ -316,7 +316,7 @@
         request = PubSubRequest('items')  # that's a rsm.PubSubRequest instance
         request.recipient = service
         request.nodeIdentifier = nodeIdentifier
-        if maxItems:
+        if maxItems is not None:
             request.maxItems = str(int(maxItems))
         request.subscriptionIdentifier = subscriptionIdentifier
         request.sender = sender