summaryrefslogtreecommitdiff
path: root/examples/filebrowser/server.conf
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-07-03 19:59:13 +0000
committerianb <devnull@localhost>2005-07-03 19:59:13 +0000
commit94bee1ee2c1e56ceb6a94e889a62dff2b8159e36 (patch)
treef12a173621e3f41544595dc0beae92b4d44feee6 /examples/filebrowser/server.conf
parent70f1fa9f5e88aa9083802b7f575bcf9862da06dc (diff)
downloadpaste-94bee1ee2c1e56ceb6a94e889a62dff2b8159e36.tar.gz
Refactored heavily; now each file type (of which there are currently just two) is its own class of servlet, and dispatching is done to the appropriate class.
Diffstat (limited to 'examples/filebrowser/server.conf')
-rw-r--r--examples/filebrowser/server.conf12
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/filebrowser/server.conf b/examples/filebrowser/server.conf
index 7a0dd1b..da36acb 100644
--- a/examples/filebrowser/server.conf
+++ b/examples/filebrowser/server.conf
@@ -5,13 +5,8 @@ import os
app_template = 'wareweb_zpt'
app_name = 'filebrowser'
framework = 'wareweb'
-root_path = '/home/ianb/svn.w4py.org/Paste/trunk/examples/filebrowser'
+root_path = os.path.dirname(__file__)
publish_dir = os.path.join(root_path, 'web')
-sys_path.extend([
- os.path.dirname(root_path),
- '/home/ianb/co/py-lib',
- '/home/ianb/co/ZPTKit',
- ])
## Server options:
@@ -23,6 +18,9 @@ server = 'wsgiutils'
reload = True
# If true, tracebacks will be shown in the browser:
debug = True
+show_exceptions_in_error_log = False
browse_path = os.path.join(root_path, 'test-data')
-#browse_path = '/home/ianb/media/music/artist'
+
+if os.path.exists(os.path.join(root_path, 'local.conf')):
+ include('local.conf')