summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorMichael Gundlach <michael.gundlach@rackspace.com>2010-08-30 19:12:31 -0400
committerMichael Gundlach <michael.gundlach@rackspace.com>2010-08-30 19:12:31 -0400
commit1ef59040aa1304a4682c6bcdaa3333372e7f8629 (patch)
tree253fbc67011e90ea37c9420f27e97996efd2148f /nova/api
parent4bca41506c90e779a8d4a5defdca3add79073185 (diff)
downloadnova-1ef59040aa1304a4682c6bcdaa3333372e7f8629.tar.gz
nova-1ef59040aa1304a4682c6bcdaa3333372e7f8629.tar.xz
nova-1ef59040aa1304a4682c6bcdaa3333372e7f8629.zip
Delete __init__.py in prep for turning apirequesthandler into __init__
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/__init__.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py
deleted file mode 100644
index 6eec0abf7..000000000
--- a/nova/api/ec2/__init__.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-
-# Copyright 2010 OpenStack LLC.
-# All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-"""
-WSGI middleware for EC2 API controllers.
-"""
-
-import routes
-import webob.dec
-
-from nova import wsgi
-
-
-class API(wsgi.Router):
- """Routes EC2 requests to the appropriate controller."""
-
- def __init__(self):
- mapper = routes.Mapper()
- mapper.connect(None, "{all:.*}", controller=self.dummy)
- super(API, self).__init__(mapper)
-
- @staticmethod
- @webob.dec.wsgify
- def dummy(req):
- """Temporary dummy controller."""
- msg = "dummy response -- please hook up __init__() to cloud.py instead"
- return repr({'dummy': msg,
- 'kwargs': repr(req.environ['wsgiorg.routing_args'][1])})