"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zaqar/transport/wsgi/utils.py" between
zaqar-5.0.0.tar.gz and zaqar-7.0.0.tar.gz

About: OpenStack Zaqar is a multi-tenant cloud messaging and notification service for web and mobile developers.
The "Rocky" series (latest release).

utils.py  (zaqar-5.0.0):utils.py  (zaqar-7.0.0)
skipping to change at line 228 skipping to change at line 228
def format_message_v1(message, base_path, claim_id=None): def format_message_v1(message, base_path, claim_id=None):
return { return {
'href': message_url(message, base_path, claim_id), 'href': message_url(message, base_path, claim_id),
'ttl': message['ttl'], 'ttl': message['ttl'],
'age': message['age'], 'age': message['age'],
'body': message['body'], 'body': message['body'],
} }
def format_message_v1_1(message, base_path, claim_id=None): def format_message_v1_1(message, base_path, claim_id=None):
url = message_url(message, base_path, claim_id) url = message_url(message, base_path, claim_id)
return { res = {
'id': message['id'], 'id': message['id'],
'href': url, 'href': url,
'ttl': message['ttl'], 'ttl': message['ttl'],
'age': message['age'], 'age': message['age'],
'body': message['body'], 'body': message['body']
} }
if message.get('checksum'):
res['checksum'] = message.get('checksum')
return res
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)