diff options
author | Ian Bicking <ian@ianbicking.org> | 2005-08-22 23:29:31 +0000 |
---|---|---|
committer | Ian Bicking <ian@ianbicking.org> | 2005-08-22 23:29:31 +0000 |
commit | 82d331036f311709b77a1e3a90a9b191c9e49c61 (patch) | |
tree | 2c91bcd0181be8babe4146c3f448429e4840f29f /paste/webkit/conf_setup.py | |
parent | 36d1c63f5e12f1dfd6d5187359093a96a2fd2de4 (diff) | |
download | paste-git-82d331036f311709b77a1e3a90a9b191c9e49c61.tar.gz |
Moved webkit to separate project
Diffstat (limited to 'paste/webkit/conf_setup.py')
-rw-r--r-- | paste/webkit/conf_setup.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/paste/webkit/conf_setup.py b/paste/webkit/conf_setup.py deleted file mode 100644 index cf34457..0000000 --- a/paste/webkit/conf_setup.py +++ /dev/null @@ -1,33 +0,0 @@ -import sys -import os -from paste import makeapp -from paste import urlparser -from paste import session -from paste import recursive -from paste import httpexceptions -from paste.util.findpackage import find_package - -def build_application(conf): - if not 'publish_dir' in conf: - print 'You must provide a publish_dir configuration value' - sys.exit(2) - directory = conf['publish_dir'] - install_fake_webware = conf.get('install_fake_webware', True) - if install_fake_webware: - _install_fake_webware() - package = find_package(directory) - app = urlparser.URLParser(directory, package) - app = makeapp.apply_conf_middleware( - app, conf, - [httpexceptions.middleware, session.SessionMiddleware, - recursive.RecursiveMiddleware]) - app = makeapp.apply_default_middleware(app, conf) - return app - -def install_fake_webware(): - fake_webware_dir = os.path.join(os.path.dirname(__file__), - 'FakeWebware') - if fake_webware_dir in sys.path: - return - sys.path.insert(0, fake_webware_dir) -_install_fake_webware = install_fake_webware |