Uses generator expressions instead of filter

Change-Id: I3685a8ecb4d34258e44a1480c4f78aaaf4dca27c
Implements: bp keystone-py3kcompat
Sync oslo-incubator db.sqlalchemy b9e2499

oslo-incubator db.sqlalchemy has a change that's needed to
support SQLAlchemy 0.9.x. This syncs the change from
oslo-incubator and any other changes that have been made
since the last sync. The oslo-incubator commit hash is
b9e249962128b72a118252216eb4f0bcafd46da0

Here's the list of changes:

9fed4ed Fix Keystone doc build errors with SQLAlchemy 0.9
5b7e61c Dispose db connections pool on disconnect
d1988b9 Set sql_mode callback on connect instead of checkout

Do this to recreate:

 $ python update.py --nodeps --base keystone \
     --dest-dir ../keystone --modules db.sqlalchemy

Change-Id: I93b310d30fc471f52487087597c4d9974a0d722c
Partial-Bug: #1296333
Fix doc build errors with SQLAlchemy 0.9

The docs failed to build when using SQLAlchemy 0.9. The following
errors occur:

 sphinx.errors.SphinxWarning:
 /opt/stack/keystone/keystone/common/sql/__init__.py:docstring of
 keystone.common.sql.relationship:53: ERROR: Unknown interpreted text
 role "paramref".

To fix this, relationship was removed from keystone.common.sql. It
was a reference to the same in sqlalchemy.orm, so the user was
changed to use sqlalchemy.orm.relationship.

 sphinx.errors.SphinxWarning:
 /opt/stack/keystone/keystone/openstack/common/db/sqlalchemy/utils.py:
 docstring of keystone.openstack.common.db.sqlalchemy.utils.or_:26:
 WARNING: more than one target found for cross-reference u'and_':
 keystone.common.sql.core.and_, keystone.common.sql.and_

To fix this, and_ was removed from keystone.common.sql. It was a
reference to the same in sqlalchemy, so the users were changed to use
sqlalchemy.and_.

Closes-Bug: #1296333
Change-Id: I39a91a5a30d351c4538d437c7584544bdb59c65e
Updated from global requirements

Change-Id: I0e1bd670d7c0d903e93a25228dd1ba489cf4acb3
Merge "Sync oslo-incubator db.sqlalchemy b9e2499"
Merge "Fix doc build errors with SQLAlchemy 0.9"
Merge "Updated from global requirements"
Imported Translations from Transifex

Change-Id: Iaeae497f08f87e7a0c90b17e9b315f9de70a9e85
Merge "Uses generator expressions instead of filter"
Avoid using .values() on the indexed columns

The length of a dict-like object should be the same as the length of the
list of values in the object, so calling .values() should be unnecessary
here.

Change-Id: I625dc7dea00cc8f09c68ea104c5c64c5f39fffc0
Closes-Bug: 1297059
Merge "Imported Translations from Transifex"
Merge "Avoid using .values() on the indexed columns"