]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use event.listen() instead of deprecated listeners kwarg
authorunicell <unicell@gmail.com>
Mon, 20 Aug 2012 11:34:19 +0000 (19:34 +0800)
committerunicell <unicell@gmail.com>
Mon, 20 Aug 2012 11:46:18 +0000 (19:46 +0800)
commit5da61a7ad9d7c3320831c437c03c428b9df84ebb
tree1f1bcc09b8a365066015d3698c07fee429723563
parentd0c6448cbc1334ee7e3053761d155f8044ecc6fa
Use event.listen() instead of deprecated listeners kwarg

Fixes bug 1031405

The listeners kwarg is deprecated in SQLAlchemy 0.7.0. Since 0.7.3 is
the minimum required version of SQLAlchemy, use the new event.listen()
API instead.

Change-Id: I1b851e197c04b131ae96e814780b04e6dcdeeb1a
cinder/db/sqlalchemy/session.py