summaryrefslogtreecommitdiffstats
path: root/echo
diff options
context:
space:
mode:
authorJesse Andrews <anotherjesse@gmail.com>2011-04-27 14:06:51 -0700
committerJesse Andrews <anotherjesse@gmail.com>2011-04-27 14:06:51 -0700
commitb4bcd1d9230b469bc19af5a12ccf1524f7de694b (patch)
treeb8bed876f76b92fef039787a9c0985362d10f1c7 /echo
parent7122789e2f17c381b53cb4cf3ebc83f034ae100d (diff)
pep8-ize
Diffstat (limited to 'echo')
-rw-r--r--echo/echo/echo.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/echo/echo/echo.py b/echo/echo/echo.py
index b0fd9c7b..c73e79b8 100644
--- a/echo/echo/echo.py
+++ b/echo/echo/echo.py
@@ -72,10 +72,10 @@ class EchoApp(object):
def toDOM(self, environ):
echo = etree.Element("{http://docs.openstack.org/echo/api/v1.0}echo",
- method= environ["REQUEST_METHOD"],
- pathInfo= environ["PATH_INFO"],
- queryString= environ.get('QUERY_STRING', ""),
- caller_identity= self.envr['HTTP_X_AUTHORIZATION'])
+ method=environ["REQUEST_METHOD"],
+ pathInfo=environ["PATH_INFO"],
+ queryString=environ.get('QUERY_STRING', ""),
+ caller_identity=self.envr['HTTP_X_AUTHORIZATION'])
content = etree.Element(
"{http://docs.openstack.org/echo/api/v1.0}content")
content.set("type", environ["CONTENT_TYPE"])
@@ -106,7 +106,8 @@ if __name__ == "__main__":
wsgi.server(eventlet.listen(('', 8100)), app)
else:
- print "Running all components locally. Use --remote option to run with remote auth proxy"
+ print "Running all components locally."
+ print "Use --remote option to run with remote auth proxy"
app = loadapp("config:" + \
os.path.join(os.path.abspath(os.path.dirname(__file__)),
"echo.ini"), global_conf={"log_name": "echo.log"})