Commits

Sven Hendriks committed f8673f4

moved from tabs to spaces in root.py.tmpl

Comments (0)

Files changed (1)

cpstub/project_template/project_name/web/control/root.py.tmpl

 from ${project_name}.web.control.hello import HelloPage
 
 class Stub(object):
-	def index(self):
-		return "We should not see this - This is an unsed stub."
+    def index(self):
+        return "We should not see this - This is an unsed stub."
 
 def run():
-	d = cherrypy.dispatch.RoutesDispatcher()
-	d.connect('default', '', controller=HelloPage())
+    d = cherrypy.dispatch.RoutesDispatcher()
+    d.connect('default', '', controller=HelloPage())
 
-	conf = {'/': {'request.dispatch': d},
-		#'/static/js': {'tools.staticdir.on': True,
-		#	       'tools.staticdir.root': web.web_base,
-		#	       'tools.staticdir.dir': 'static/js'},
-		'/static/css': {'tools.staticdir.on': True,
-			       'tools.staticdir.root': web.web_base,
-			       'tools.staticdir.dir': 'static/css'},
-		#'/static/images': {'tools.staticdir.on': True,
-		#	       'tools.staticdir.root': web.web_base,
-		#	       'tools.staticdir.dir': 'static/images'},
-	}
+    conf = {'/': {'request.dispatch': d},
+        #'/static/js': {'tools.staticdir.on': True,
+        #           'tools.staticdir.root': web.web_base,
+        #           'tools.staticdir.dir': 'static/js'},
+        '/static/css': {'tools.staticdir.on': True,
+                   'tools.staticdir.root': web.web_base,
+                   'tools.staticdir.dir': 'static/css'},
+        #'/static/images': {'tools.staticdir.on': True,
+        #           'tools.staticdir.root': web.web_base,
+        #           'tools.staticdir.dir': 'static/images'},
+    }
 
-	cherrypy.quickstart(Stub(), '/', config=conf)
+    cherrypy.quickstart(Stub(), '/', config=conf)
 
 if __name__ == "__main__":
-	run()
+    run()