From 94bee1ee2c1e56ceb6a94e889a62dff2b8159e36 Mon Sep 17 00:00:00 2001 From: ianb Date: Sun, 3 Jul 2005 19:59:13 +0000 Subject: 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. --- examples/filebrowser/server.conf | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'examples/filebrowser/server.conf') 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') -- cgit v1.2.1