deb-glance/glance/common
Gábor Antal 8a63622348 Extracted HTTP response codes to constants
There are several places in the source code where
HTTP response codes are used as numeric values.
These values are used from six.moves and the
numeric values are replaced by constants.

All of the used status codes were replaced with symbolic constants
from six.moves.http_client. More about six.moves.http_client can be
found at [2], under the table "Supported renames:".

Also, this change  improves code readibility.

This patchset does not extract numeric values
from the tests, but it can be found at [1].

[1]: Idfc7b043552f428f01ac3e47b270ee0639a8f5bc
[2]: https://pythonhosted.org/six/#module-six.moves

Change-Id: Ib9e26dcea927e96e65c626c18421621d3a29a64d
Partial-Bug: #1520159
2016-10-06 15:15:20 +00:00
..
glare Merge "Allow mutable argument to be passed to BinaryObject artifacts" 2016-03-02 05:53:39 +00:00
location_strategy Fixing inconsistency in Glance store names. 2016-09-23 16:11:18 +00:00
scripts Import i18n functions directly 2015-12-07 18:20:43 +03:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
auth.py Extracted HTTP response codes to constants 2016-10-06 15:15:20 +00:00
client.py fix docstring warnings and errors 2016-03-14 18:40:15 +00:00
config.py Merge "Improving help text for data access API option" 2016-09-01 17:43:41 +00:00
crypt.py Merge "remove redundant "#!/usr/bin/env python" header" 2016-02-26 01:12:03 +00:00
exception.py Use cursive for signature verification 2016-08-31 12:18:10 -07:00
jsonpatchvalidator.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
property_utils.py Improving help text for proprty utils opts. 2016-08-01 20:24:38 +00:00
rpc.py Fix using filter() to meet python2,3 2016-08-30 11:43:52 +07:00
semver_db.py Nitpick spell change 2016-07-08 14:25:47 +00:00
store_utils.py Remove references of s3 store driver 2016-08-11 12:32:48 -04:00
swift_store_utils.py Improving help text for swift_store_utils opts 2016-08-01 17:18:27 +00:00
timeutils.py Use oslo.utils exception encoding util 2016-01-22 16:14:20 -08:00
trust_auth.py Implement trust support for api v2 2016-01-14 12:37:37 +03:00
utils.py Merge "Add check to limit maximum value of max_rows" 2016-07-30 22:32:41 +00:00
wsgi.py Improving help text for WSGI server conf opts. 2016-08-31 20:50:48 +00:00
wsme_utils.py Replace oslo_utils.timeutils 2015-12-10 10:53:46 +00:00