comparison src/tmp/wokkel/rsm.py @ 1515:30ba7cac1dd2

tmp (wokkel): fixes RSM when maxItems is 0
author souliane <souliane@mailoo.org>
date Thu, 10 Sep 2015 15:04:16 +0200
parents bad2e0e3fe70
children 7debf3a4bf14
comparison
equal deleted inserted replaced
1514:bad2e0e3fe70 1515:30ba7cac1dd2
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: