import webob
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import flags
from cinder.openstack.common import log as logging
import cinder.api.openstack
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import exception
from cinder import flags
from cinder.openstack.common import exception as common_exception
from cinder.api.openstack.volume import limits
from cinder.api.openstack.volume import snapshots
from cinder.api.openstack.volume import types
-from cinder.api.openstack.volume import versions
from cinder.api.openstack.volume import volumes
+from cinder.api import versions
from cinder.openstack.common import log as logging
"""
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder import flags
from cinder.openstack.common import log as logging
import webob
from webob import exc
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
from cinder import db
from cinder import exception
from webob import exc
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import exception
from cinder import flags
from cinder.openstack.common import log as logging
"""The Create Volume from Image extension."""\r
\r
\r
-from cinder.api.openstack import extensions\r
+from cinder.api import extensions\r
\r
\r
class Image_create(extensions.ExtensionDescriptor):\r
import webob
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import db
from cinder import exception
from cinder import quota
import webob
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import db
from cinder.db.sqlalchemy import api as sqlalchemy_api
from cinder import exception
import webob
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import db
from cinder import exception
from cinder.volume import volume_types
import webob
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack.volume import types
-from cinder.api.openstack.volume.views import types as views_types
from cinder.api.openstack import wsgi
+from cinder.api.views import types as views_types
from cinder import exception
from cinder.volume import volume_types
import webob
from xml.dom import minidom
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import exception
from cinder import flags
from cinder.openstack.common import log as logging
# License for the specific language governing permissions and limitations
# under the License.
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder.openstack.common import log as logging
from cinder import volume
# License for the specific language governing permissions and limitations
# under the License.
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import volume
# License for the specific language governing permissions and limitations
# under the License.
-from cinder.api.openstack import extensions as base_extensions
+from cinder.api import extensions as base_extensions
from cinder import flags
from cinder.openstack.common import log as logging
import webob.dec
import webob.exc
-from cinder.api.openstack.volume.views import limits as limits_views
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api.views import limits as limits_views
+from cinder.api import xmlutil
from cinder.openstack.common import importutils
from cinder.openstack.common import jsonutils
from cinder import quota
import webob
from webob import exc
-from cinder.api.openstack import common
+from cinder.api import common
from cinder.api.openstack.volume import volumes
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import exception
from cinder import flags
from cinder.openstack.common import log as logging
from webob import exc
-from cinder.api.openstack.volume.views import types as views_types
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api.views import types as views_types
+from cinder.api import xmlutil
from cinder import exception
from cinder.volume import volume_types
from webob import exc
from xml.dom import minidom
-from cinder.api.openstack import common
+from cinder.api import common
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import exception
from cinder import flags
from cinder.openstack.common import log as logging
# under the License.
import datetime
-
from lxml import etree
-from cinder.api.openstack.volume.views import versions as views_versions
from cinder.api.openstack import wsgi
-from cinder.api.openstack import xmlutil
+from cinder.api.views import versions as views_versions
+from cinder.api import xmlutil
VERSIONS = {
# License for the specific language governing permissions and limitations
# under the License.
-from cinder.api.openstack import common
+from cinder.api import common
class ViewBuilder(common.ViewBuilder):
def validate_schema(xml, schema_name):
if isinstance(xml, str):
xml = etree.fromstring(xml)
- base_path = 'cinder/api/openstack/volume/schemas/v1.1/'
+ base_path = 'cinder/api/schemas/v1.1/'
if schema_name in ('atom', 'atom-link'):
- base_path = 'cinder/api/openstack/volume/schemas/'
+ base_path = 'cinder/api/schemas/'
schema_path = os.path.join(utils.cinderdir(),
'%s%s.rng' % (base_path, schema_name))
schema_doc = etree.parse(schema_path)
from cinder.api import auth as api_auth
from cinder.api import openstack as openstack_api
from cinder.api.openstack import auth
-from cinder.api.openstack import urlmap
from cinder.api.openstack import volume
from cinder.api.openstack.volume import limits
-from cinder.api.openstack.volume import versions
from cinder.api.openstack import wsgi as os_wsgi
+from cinder.api import urlmap
+from cinder.api import versions
from cinder import context
from cinder import exception as exc
from cinder.openstack.common import timeutils
import webob.dec
import webob.exc
-from cinder.api.openstack import common
+from cinder.api import common
from cinder.api.openstack import wsgi
from cinder.openstack.common import jsonutils
from cinder import test
import webob.exc
-from cinder.api.openstack import extensions
+from cinder.api import extensions
from cinder.api.openstack import wsgi
import webob
from cinder.api.openstack import volume
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import flags
from cinder.openstack.common import jsonutils
from cinder import test
import webob
from cinder.api.openstack.volume import limits
-from cinder.api.openstack.volume import views
-from cinder.api.openstack import xmlutil
+from cinder.api import views
+from cinder.api import xmlutil
import cinder.context
from cinder.openstack.common import jsonutils
from cinder import test
from cinder.api.openstack import volume
from cinder.api.openstack.volume import snapshots
-from cinder.api.openstack.volume import versions
from cinder.api.openstack.volume import volumes
from cinder.api.openstack import wsgi
+from cinder.api import versions
from cinder import flags
from cinder.openstack.common import log as logging
from cinder import test
import webob
from cinder.api.openstack.volume import types
-from cinder.api.openstack.volume.views import types as views_types
+from cinder.api.views import types as views_types
from cinder import exception
from cinder.openstack.common import timeutils
from cinder import test
import webob
import webob.exc
-from cinder.api.openstack import common
+from cinder.api import common
from cinder import test
class LimiterTest(test.TestCase):
"""
- Unit tests for the `cinder.api.openstack.common.limited` method which takes
+ Unit tests for the `cinder.api.common.limited` method which takes
in a list of items and, depending on the 'offset' and 'limit' GET params,
returns a subset or complete set of the given items.
"""
class PaginationParamsTest(test.TestCase):
"""
- Unit tests for the `cinder.api.openstack.common.get_pagination_params`
+ Unit tests for the `cinder.api.common.get_pagination_params`
method which takes in a request object and returns 'marker' and 'limit'
GET params.
"""
from lxml import etree
-from cinder.api.openstack import xmlutil
+from cinder.api import xmlutil
from cinder import test
from lxml import etree
-from cinder.api.openstack import common
+from cinder.api import common
from cinder.openstack.common import log as logging
from cinder.tests.integrated import integrated_helpers
#############
[composite:osapi_volume]
-use = call:cinder.api.openstack.urlmap:urlmap_factory
+use = call:cinder.api.urlmap:urlmap_factory
/: osvolumeversions
/v1: openstack_volume_api_v1
pipeline = faultwrap osvolumeversionapp
[app:osvolumeversionapp]
-paste.app_factory = cinder.api.openstack.volume.versions:Versions.factory
+paste.app_factory = cinder.api.versions:Versions.factory
##########
# Shared #