Mercurial > sat_tmp
diff wokkel/rsm.py @ 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 | 80f9a1a3d002 |
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