import eventlet
eventlet.monkey_patch(os=False)
-import gettext
import os
import sys
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
sys.path.insert(0, possible_topdir)
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from oslo.config import cfg
import eventlet
eventlet.monkey_patch(os=False)
-import gettext
import os
import sys
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
sys.path.insert(0, possible_topdir)
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from oslo.config import cfg
import eventlet
eventlet.monkey_patch(os=False)
-import gettext
import os
import sys
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
sys.path.insert(0, possible_topdir)
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from oslo.config import cfg
API server.
"""
-import gettext
import optparse
import os
import os.path
scriptname = os.path.basename(sys.argv[0])
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
if scriptname == 'heat-boto':
from heat.cfn_client import boto_client as heat_client
which then calls into this engine.
"""
-import gettext
import eventlet
eventlet.monkey_patch()
if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'heat', '__init__.py')):
sys.path.insert(0, POSSIBLE_TOPDIR)
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from oslo.config import cfg
It is a convenience application that talks to the heat Cloudwatch API server.
"""
-import gettext
import optparse
import os
import os.path
scriptname = os.path.basename(sys.argv[0])
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from heat.cfn_client import boto_client_cloudwatch as heat_client
from heat.version import version_info as version
import urlparse
import httplib
-import gettext
import hashlib
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from heat.common import wsgi
from heat.openstack.common import jsonutils as json
# License for the specific language governing permissions and limitations
# under the License.
-import gettext
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
-gettext.install('heat', unicode=1)
from heat.api.middleware.version_negotiation import VersionNegotiationFilter
from heat.api.cfn import versions
# under the License.
import routes
-import gettext
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from heat.api.cloudwatch import watch
from heat.common import wsgi
# under the License.
import routes
-import gettext
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from heat.api.openstack.v1 import stacks
from heat.api.openstack.v1 import resources
from __future__ import print_function
-import gettext
-
import sys
-gettext.install('heat', unicode=1)
+from heat.openstack.common import gettextutils
+
+gettextutils.install('heat')
from oslo.config import cfg
from heat.openstack.common import log as logging