import json
import urlparse
import httplib
-import routes
import gettext
gettext.install('heat', unicode=1)
from heat.common import wsgi
-from webob import Request
import webob
-from heat import utils
-from heat.common import context
from heat.api.aws import exception
from heat.openstack.common import log as logging
# License for the specific language governing permissions and limitations
# under the License.
-import json
-import urlparse
-import httplib
import routes
-from heat.api.cfn.v1 import stacks
-from heat.common import wsgi
-
from webob import Request
-import webob
-from heat import utils
-from heat.common import context
-from heat.api.aws import exception
+from heat.api.cfn.v1 import stacks
+from heat.common import wsgi
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
import httplib
import json
-import os
import socket
-import sys
import urlparse
-import webob
from heat.api.aws import exception
from heat.api.aws import utils as api_utils
from heat.common import wsgi
-from heat.common import config
-from heat.common import context
-from heat import utils
from heat.engine import rpcapi as engine_rpcapi
import heat.engine.api as engine_api
from heat.engine import identifier
-from heat.openstack.common import rpc
import heat.openstack.common.rpc.common as rpc_common
+
from heat.openstack.common import log as logging
+from heat.openstack.common.gettextutils import _
logger = logging.getLogger('heat.api.cfn.v1.stacks')
# License for the specific language governing permissions and limitations
# under the License.
-import json
-import urlparse
-import httplib
import routes
import gettext
from heat.common import wsgi
from webob import Request
-import webob
-from heat import utils
-from heat.common import context
-from heat.api.aws import exception
from heat.api.middleware.version_negotiation import VersionNegotiationFilter
from heat.api.cloudwatch import versions
"""
endpoint for heat AWS-compatible CloudWatch API
"""
-import os
-import sys
-import re
-import webob
from heat.api.aws import exception
from heat.api.aws import utils as api_utils
from heat.common import wsgi
-from heat.common import config
-from heat.common import context
-from heat import utils
from heat.engine import rpcapi as engine_rpcapi
import heat.engine.api as engine_api
-from heat.openstack.common import rpc
import heat.openstack.common.rpc.common as rpc_common
from heat.openstack.common import log as logging
# License for the specific language governing permissions and limitations
# under the License.
-import json
-import urlparse
-import httplib
import routes
import gettext
from heat.api.openstack.v1 import resources
from heat.common import wsgi
-from webob import Request
-import webob
-from heat import utils
-from heat.common import context
-
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
import errno
import functools
import httplib
-import logging
import os
import urllib
import urlparse
try:
- from eventlet.green import socket, ssl
+ from eventlet.green import socket, socket, ssl
except ImportError:
+ import select
import socket
import ssl
import logging.config
import logging.handlers
import os
-import socket
-# TODO ^ eventlet.socket ?
import sys
-from heat import version
+from eventlet.green import socket
+
from heat.common import wsgi
from heat.openstack.common import cfg
-from heat.openstack.common import rpc
DEFAULT_PORT = 8000
from heat.openstack.common import cfg
from heat.openstack.common import importutils
from heat.common import utils as heat_utils
-import json
def generate_request_id():
System-level utilities and helper functions.
"""
-import datetime
import sys
import uuid
from eventlet import event
from eventlet import greenthread
-from eventlet import semaphore
-from eventlet.green import subprocess
-
-from heat.openstack.common import exception
def chunkreadable(iter, chunk_size=65536):
import signal
import sys
import time
-import re
from lxml import etree
-
import eventlet
import eventlet.greenio
from eventlet.green import socket, ssl
from heat.common import exception
from heat.openstack.common import cfg
from heat.openstack.common import importutils
-from heat.openstack.common import utils
URL_LENGTH_LIMIT = 50000
supported backend.
'''
import heat.utils
-from heat.openstack.common import utils
from heat.openstack.common import cfg
-import heat.utils
+
SQL_CONNECTION = 'sqlite://'
SQL_IDLE_TIMEOUT = 3600
import migrate
from migrate.versioning import util as migrate_util
+from heat.openstack.common import exception
+
_REPOSITORY = None
from sqlalchemy.orm import relationship, backref, object_mapper
from sqlalchemy.exc import IntegrityError
from sqlalchemy.ext.declarative import declarative_base
-from sqlalchemy.schema import ForeignKeyConstraint
from sqlalchemy import types as types
from json import dumps, loads
from heat.common import utils
# License for the specific language governing permissions and limitations
# under the License.
-import re
from heat.openstack.common import timeutils
from heat.engine import parser
from heat.engine import template
# License for the specific language governing permissions and limitations
# under the License.
-import json
-import httplib
-import urlparse
import base64
-from novaclient.v1_1 import client
-from novaclient.exceptions import BadRequest
-from novaclient.exceptions import NotFound
-from novaclient.exceptions import AuthorizationFailure
-from heat.common import context
-from heat.openstack.common import log as logging
from Crypto.Cipher import AES
from Crypto import Random
from heat.openstack.common import cfg
-from heat.openstack.common import importutils
+from heat.openstack.common import log as logging
auth_opts = [
# under the License.
import eventlet
-import json
import functools
-import copy
from heat.common import exception
from heat.engine import dependencies
# License for the specific language governing permissions and limitations
# under the License.
-import eventlet
-import json
-import os
-
from heat.common import exception
from heat.engine import watchrule
from heat.engine.resources import resource
import eventlet
import os
import json
-import sys
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from novaclient.exceptions import NotFound
# License for the specific language governing permissions and limitations
# under the License.
-import urllib2
import json
from heat.common import exception
from heat.engine.resources import stack
-from heat.db import api as db_api
-from heat.engine import parser
from novaclient.exceptions import NotFound
from heat.openstack.common import log as logging
from datetime import datetime
from heat.common import exception
-from heat.common import config
from heat.db import api as db_api
from heat.engine import identifier
from heat.engine import timestamp
from heat.engine.resources.properties import Properties
from heat.openstack.common import log as logging
-from heat.openstack.common import cfg
logger = logging.getLogger('heat.engine.resources')
from novaclient.exceptions import BadRequest
from novaclient.exceptions import NotFound
-from heat.common import exception
from heat.engine.resources import resource
from heat.openstack.common import log as logging
from heat.common import exception
from heat.engine.resources import resource
-from heat.db import api as db_api
from heat.engine import parser
from heat.openstack.common import log as logging
"""
from heat.openstack.common import cfg
-from heat.openstack.common import exception
from heat.openstack.common import rpc
-from heat.openstack.common.rpc import common as rpc_common
import heat.openstack.common.rpc.proxy