Suppress pagination on non-tty glance index.

Fixes bug 978610.

Avoid the 'Fetch next page? [Y/n]' prompt interfering with
redirected output.

The native glance CLI will soon be superceeded by the new
python-glanceclient, however this patch could still be useful
to propogate from master to the stable diablo/essex branches.

Change-Id: I16bc6156d7c7e9ed27aabcaa51211060ec24a824
Add a space to fix minor typo in glance help.

* Add space to fix minor typo in glance help.
* Add myself to Authors as adviced in the review process.

Change-Id: I9a656e5fce7184605eca98102f9f39a8799c84de
Fix i18n in glance.notifier.notify_kombu

* Fixes bug 983829

Change-Id: Ibc5ec12e97e69797d1952c020c3091f42480abec
Remove __init__.py from locale dir

Previously, the __init__.py indicated that we have a custom locale package,
preventing imports of the locale package that ships with python itself.

* Fixes bug 977021

Change-Id: Id4921a1efd1a223790cc8b52917d00b387e9cba6
Merge "Suppress pagination on non-tty glance index."
Merge "Add a space to fix minor typo in glance help."
Merge "Fix i18n in glance.notifier.notify_kombu"
Merge "Remove __init__.py from locale dir"
Fix content type for qpid notifier.

Fix bug 980872.

This patch fixes a regression I introduced in
2d36facf14f4eb2742ba46274e04a73b5231aece.  In that patch, I adjusted the
content_type for messages sent with the qpid notifier to be
'application/json' to match a change that went into the kombu notifier.
Unfortunately, it's wrong.

I assumed based on the kombu change that notifications were being json
encoded before being passed into the notification driver.  That's not
the case.  The message is a dict.  So, just revert the change to set the
content_type and let Qpid encode the notification as 'amqp/map'.

Change-Id: Iea027409f6200109b97fed93073cff84bc915536
Omit Content-Length on chunked transfer

Content-Length and Transfer-Encoding conflict according to the HTTP
spec. This fixes bug 981332.

This also adds the ability to test both the sendfile-present and
sendfile-absent codepaths; the sendfile-present test will be skipped on
sendfile-absent platforms.

Change-Id: Ibb017b4a43d89ffdb6b868648296603cfec7780d
Fixes LP #978119 - cachemanagement w/o keystone

Removes section of glance-api-paste.ini that refers to
an improper cachemanagement middleware without keystone

Change-Id: I86a1a84aac16a8345b06ce83562f4508b49dac10
Merge "Fixes LP #978119 - cachemanagement w/o keystone"
Merge "Omit Content-Length on chunked transfer"
Begin functional testing of v2 API

* Ensure the schemas resource functionally works
* Partially implements bp api-2

Change-Id: I0bedda0276e0ae3a648d425030c434be9c1eb1b6
Merge registry context with common context

Pull the extra methods defined in glance.registry.context:RequestContext into
glance.common.context:RequestContext. This is necessary as the new v2 API
implementation talks directly to the database.

* Partially implements bp api-2

Change-Id: Ia8c1fde511bdca69be0dcf61ce12976ace5f7dc3
Merge "Merge registry context with common context"
Fixes LP #992096 - Ensure version in URL

* Documents the configure_via_auth parameter
* Ensures that if configure_via_auth is used (the default), that
  if the management_url that is returned does not contain a version
  identifier, the client class' DEFAULT_DOC_ROOT is appended
  appropriately.
* Adds some log debugging statements into the base client class so
  that the URL being configured/constructed is more easily identifiable

Change-Id: I307a24231b59f7a183ed669f679976cc3f8ec21c
Integrate openstack-common using update.py

* Update all cfg and setup imports to point to new location
* Fixes bug 987968

Change-Id: If2fbf126e0b241e80ee59fa4e43bb5af6eb879a8
Merge "Fixes LP #992096 - Ensure version in URL"
Auto generate AUTHORS file for glance.

Bug: 976267

Now that git commits are gated by CLA, we shouldn't enforce
committers to add an entry in AUTHORS file. The AUTHORS file
should be generated automatically, based on git commits.

This commit fixes the problem.

* Authors
  Remove this file. To be consistent with other projects,
  the new file AUTHORS is generated automatically.

* .gitignore
  Add AUTHORS file.

* glance/common/setup.py
  generate_authors(): New method to create AUTHORS file. If
  AUTHORS.in file exists, append it's content to AUTHORS file.

* setup.py
  Import the new method.
  local_sdist.run(): Generate AUTHORS file before creating the
  package.

* MANIFEST.in
  s/Authors/AUTHORS

* glance/tests/unit/test_misc.py
  AuthorsTestCase: Remove this class that test an entry in
  Authors file.
  parse_mailmap(), str_dict_replace(): Remove these methods.

Change-Id: If83c3fe9b2142342ac11cc019bc24926f52ee753