"Fossies" - the Fresh Open Source Software Archive  

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

driver.py  (zaqar-9.0.0):driver.py  (zaqar-10.0.0)
skipping to change at line 164 skipping to change at line 164
self.app = auth.SignedHeadersAuth(self.app, auth_app) self.app = auth.SignedHeadersAuth(self.app, auth_app)
# NOTE(wangxiyuan): Install CORS, this middleware should be called # NOTE(wangxiyuan): Install CORS, this middleware should be called
# before Keystone auth. # before Keystone auth.
self.app = cors.install_cors(self.app, auth_app, self._conf) self.app = cors.install_cors(self.app, auth_app, self._conf)
acl.setup_policy(self._conf) acl.setup_policy(self._conf)
def _error_handler(self, exc, request, response, params): def _error_handler(self, exc, request, response, params):
if isinstance(exc, falcon.HTTPError): if isinstance(exc, falcon.HTTPError):
raise exc raise
LOG.exception(exc) LOG.exception('Internal server error')
raise falcon.HTTPInternalServerError('Internal server error', raise falcon.HTTPInternalServerError('Internal server error',
six.text_type(exc)) six.text_type(exc))
def _get_server_cls(self, host): def _get_server_cls(self, host):
"""Return an appropriate WSGI server class base on provided host """Return an appropriate WSGI server class base on provided host
:param host: The listen host for the zaqar API server. :param host: The listen host for the zaqar API server.
""" """
server_cls = simple_server.WSGIServer server_cls = simple_server.WSGIServer
if netutils.is_valid_ipv6(host): if netutils.is_valid_ipv6(host):
 End of changes. 1 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)