comparison 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
comparison
equal deleted inserted replaced
15:9019d6cbaf0e 16:4629645a368d
314 @rtype: L{defer.Deferred} 314 @rtype: L{defer.Deferred}
315 """ 315 """
316 request = PubSubRequest('items') # that's a rsm.PubSubRequest instance 316 request = PubSubRequest('items') # that's a rsm.PubSubRequest instance
317 request.recipient = service 317 request.recipient = service
318 request.nodeIdentifier = nodeIdentifier 318 request.nodeIdentifier = nodeIdentifier
319 if maxItems: 319 if maxItems is not None:
320 request.maxItems = str(int(maxItems)) 320 request.maxItems = str(int(maxItems))
321 request.subscriptionIdentifier = subscriptionIdentifier 321 request.subscriptionIdentifier = subscriptionIdentifier
322 request.sender = sender 322 request.sender = sender
323 request.itemIdentifiers = itemIdentifiers 323 request.itemIdentifiers = itemIdentifiers
324 if ext_data and 'rsm' in ext_data: 324 if ext_data and 'rsm' in ext_data: