"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zaqar/transport/wsgi/v2_0/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).

purge.py  (zaqar-9.0.0):purge.py  (zaqar-10.0.0)
skipping to change at line 77 skipping to change at line 77
LOG.debug("Purge all subscriptions under queue %s", queue_name) LOG.debug("Purge all subscriptions under queue %s", queue_name)
results = self._subscription_ctrl.list(queue_name, results = self._subscription_ctrl.list(queue_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(queue_name, self._subscription_ctrl.delete(queue_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'Queue could not be purged.') description = _(u'Queue 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)