Mercurial > sat_tmp
comparison sat_tmp/wokkel/rsm.py @ 74:76b7ae23dc66
wokkel (rsm): don't convert value to str anymore in RSMResponse.toDict
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 15 Aug 2020 23:03:59 +0200 |
parents | 0721b6254c9e |
children | 896e76caa204 |
comparison
equal
deleted
inserted
replaced
73:ab556b1c2ca4 | 74:76b7ae23dc66 |
---|---|
313 """ | 313 """ |
314 result = {} | 314 result = {} |
315 for attr in ('first', 'last', 'index', 'count'): | 315 for attr in ('first', 'last', 'index', 'count'): |
316 value = getattr(self, attr) | 316 value = getattr(self, attr) |
317 if value is not None: | 317 if value is not None: |
318 result[attr] = str(value) | 318 result[attr] = value |
319 return result | 319 return result |
320 | 320 |
321 | 321 |
322 class PubSubRequest(pubsub.PubSubRequest): | 322 class PubSubRequest(pubsub.PubSubRequest): |
323 """PubSubRequest extension to handle RSM. | 323 """PubSubRequest extension to handle RSM. |