Got rid of the stupid config file.
authorSteve Losh <steve@stevelosh.com>
Sat, 7 Feb 2009 17:51:40 +0000 (12:51 -0500)
committerSteve Losh <steve@stevelosh.com>
Sat, 7 Feb 2009 17:51:40 +0000 (12:51 -0500)
cfbe.config [deleted file]
cfbe.py

diff --git a/cfbe.config b/cfbe.config
deleted file mode 100644 (file)
index db56ff2..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[global]
-server.socket_host = '0.0.0.0'
-server.socket_port = 8000
-server.thread_pool = 10
-tools.sessions.on = True
-tools.staticdir.root = "/Users/sjl/Documents/cherryflavoredbugseverywhere/static"
-
-[/static]
-tools.staticdir.on = True
-tools.staticdir.dir = ""
\ No newline at end of file
diff --git a/cfbe.py b/cfbe.py
index 817f41f2af98db446007385a4a609b9d4584d555..63fbc7e288ddb9aa68cd26e5c8cff9a0e6d54c10 100755 (executable)
--- a/cfbe.py
+++ b/cfbe.py
@@ -31,4 +31,8 @@ config = path.join(module_dir, 'cfbe.config')
 options = parse_arguments()
 
 WebInterface = web.WebInterface(path.abspath(options['bug_root']), template_dir)
-cherrypy.quickstart(WebInterface, '/', config)
+
+cherrypy.config.update({'tools.staticdir.root': path.join(module_dir, 'static')})
+app_config = { '/static': { 'tools.staticdir.on': True,
+                            'tools.staticdir.dir': '', } }
+cherrypy.quickstart(WebInterface, '/', app_config)