glance/glance
Matt Riedemann 5508653052 Fix lazy translation UnicodeErrors
upload_utils is concatenating str and Message objects which doesn't work
on python 2, so change the str to a unicode object.

test_quota.py was casting Message objects to str which fails for the
same reason, so rather than cast to str, cast using six.text_type.

See oslo commit 2cfc1a78d8063cf20083cf7df796d730a576551c for history and
details on why the Message object doesn't support __str__ casting.

This is a small part of a larger effort that the oslo team will be
rolling out with graduation and adoption of the oslo-i18n library.

Closes-Bug: #1334774

Conflicts:
	glance/api/v1/upload_utils.py
	glance/tests/unit/test_quota.py

Change-Id: I9d3f29c661f1afffabbbbb499f48d37ef5a8fcee
(cherry picked from commit 834e1f2150)
2014-07-24 12:55:06 +02:00
..
api Fix lazy translation UnicodeErrors 2014-07-24 12:55:06 +02:00
cmd Making DB sanity checking be optional for DB migration 2014-04-02 00:01:16 +08:00
common Sanitize set passed to jsonutils.dumps() 2014-03-27 16:35:53 +00:00
db Fixes Glance Registry V2 client 2014-04-11 09:31:19 -07:00
domain Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
image_cache Merge "Catch exception when image cache pruning" 2014-03-14 06:58:29 +00:00
locale Fix Jenkins translation jobs 2014-04-08 10:58:23 +02:00
openstack Sync common db code from Oslo 2014-03-26 06:51:43 +08:00
quota Enable F841 check 2014-02-13 16:54:12 +04:00
registry registry: log errors on failure 2014-03-17 18:06:10 +01:00
store Prevent creation of http images with invalid URIs 2014-05-30 15:38:04 +09:00
tests Fix lazy translation UnicodeErrors 2014-07-24 12:55:06 +02:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Fix logging context to include user_identity 2014-02-21 17:19:31 +01:00
gateway.py Use common Oslo database session 2014-01-03 05:37:41 +04:00
notifier.py Catch loading failures if transport_url is not set 2014-04-07 10:18:00 +02:00
schema.py Add support for API message localization 2014-03-04 14:18:28 +08:00
scrubber.py Merge "Enable F841 check" 2014-02-18 08:08:14 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00