From c831e8f851a6fec3979f9fbcc02cd7a7c992d62d Mon Sep 17 00:00:00 2001 From: souliane Date: Thu, 10 Sep 2015 15:04:16 +0200 Subject: [PATCH] tmp (wokkel): fixes RSM when maxItems is 0 --- src/tmp/wokkel/rsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmp/wokkel/rsm.py b/src/tmp/wokkel/rsm.py index 146f7ac7..9e5e626d 100644 --- a/src/tmp/wokkel/rsm.py +++ b/src/tmp/wokkel/rsm.py @@ -316,7 +316,7 @@ class PubSubClient(pubsub.PubSubClient): 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