diff bin/homepageConfig @ 1858:7772cc48e016

reformat all python Ignore-this: 1135b78893f8b3d31badddda7f45678f
author drewp@bigasterisk.com
date Tue, 21 May 2019 23:56:12 +0000
parents 6fa4288da8a6
children f066d6e874db
line wrap: on
line diff
--- a/bin/homepageConfig	Tue May 21 23:55:35 2019 +0000
+++ b/bin/homepageConfig	Tue May 21 23:56:12 2019 +0000
@@ -17,6 +17,7 @@
     raise ValueError('no %r :webServer' % netHome)
 print "listen %s;" % splitport(urlparse(webServer).netloc)[1]
 
+
 def location(path, server):
     print """
     location /%(path)s/ {
@@ -32,6 +33,7 @@
       rewrite /[^/]+/(.*) /$1 break;
     }""" % vars()
 
+
 for role, server in sorted(graph.predicate_objects(netHome)):
     if not server.startswith('http') or role == L9['webServer']:
         continue
@@ -41,11 +43,11 @@
     server = server.rstrip('/')
     location(path, server)
 
-
-
 showPath = showconfig.showUri().split('/', 3)[-1]
 print """
     location /%(path)s {
       root %(root)s;
-    }""" % {'path': showPath,
-            'root': showconfig.root()[:-len(showPath)]}
+    }""" % {
+    'path': showPath,
+    'root': showconfig.root()[:-len(showPath)]
+}