]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Provide gettext _ in missing locations
authorJohn Griffith <john.griffith@solidfire.com>
Wed, 16 Oct 2013 02:51:07 +0000 (20:51 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 16 Oct 2013 19:53:22 +0000 (13:53 -0600)
A while back a change was merged that moved
our shortcut for gettext out of __init__
(change here: If4125d6bcbde63df95de129ac5c83b4a6d6f130a)

This worked out fine for the most part but broke the sphinx doc
builder for a number of files.  This patch just adds the proper
import to each of these files to get the builder working correctly
again.

Change-Id: Ifed20d309566be456c9519294714ccb45de76e00
Closes-Bug: #1209406

cinder/api/v1/limits.py
cinder/common/config.py
cinder/exception.py
cinder/policy.py

index a0a89078a2db232698123d5253a61a388e055b7f..aeac101ed1302bbfa50c22bae671a9f47638524b 100644 (file)
@@ -30,6 +30,7 @@ import webob.exc
 from cinder.api.openstack import wsgi
 from cinder.api.views import limits as limits_views
 from cinder.api import xmlutil
+from cinder.openstack.common.gettextutils import _
 from cinder.openstack.common import importutils
 from cinder.openstack.common import jsonutils
 from cinder import quota
index 634cbc9056fbbeb35615445d3b2fccc24ea6e640..4583acf41ff48419530649d8813a245fc958a40c 100644 (file)
@@ -32,6 +32,8 @@ import socket
 
 from oslo.config import cfg
 
+from cinder.openstack.common.gettextutils import _
+
 
 CONF = cfg.CONF
 
index ef6da48eb67a5a39deaef9c8c6fe0bad305dc754..a73ff12c98bd18c463620b7d002ead8d4b9f908b 100644 (file)
@@ -29,6 +29,7 @@ import sys
 from oslo.config import cfg
 import webob.exc
 
+from cinder.openstack.common.gettextutils import _
 from cinder.openstack.common import log as logging
 from cinder.openstack.common import processutils
 
index 2beff0f198c352e2451a89146e243db1528160c8..0d766e20bced453bf6435ed34906e1b02e70f81d 100644 (file)
@@ -21,6 +21,7 @@
 from oslo.config import cfg
 
 from cinder import exception
+from cinder.openstack.common.gettextutils import _
 from cinder.openstack.common import policy
 from cinder import utils