"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zaqar/transport/wsgi/v2_0/topic_purge.py" between
zaqar-9.0.0.tar.gz and zaqar-10.0.0.tar.gz

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

topic_purge.py  (zaqar-9.0.0):topic_purge.py  (zaqar-10.0.0)
skipping to change at line 76 skipping to change at line 76
LOG.debug("Purge all subscriptions under topic %s", topic_name) LOG.debug("Purge all subscriptions under topic %s", topic_name)
results = self._subscription_ctrl.list(topic_name, results = self._subscription_ctrl.list(topic_name,
project=project_id) project=project_id)
subscriptions = list(next(results)) subscriptions = list(next(results))
for sub in subscriptions: for sub in subscriptions:
self._subscription_ctrl.delete(topic_name, self._subscription_ctrl.delete(topic_name,
sub['id'], sub['id'],
project=project_id) project=project_id)
except ValueError as err: except ValueError as err:
raise wsgi_errors.HTTPBadRequestAPI(str(err)) raise wsgi_errors.HTTPBadRequestAPI(str(err))
except Exception as ex: except Exception:
description = _(u'Topic could not be purged.') description = _(u'Topic could not be purged.')
raise wsgi_errors.HTTPServiceUnavailable(description) raise wsgi_errors.HTTPServiceUnavailable(description)
resp.status = falcon.HTTP_204 resp.status = falcon.HTTP_204
 End of changes. 2 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)