summaryrefslogtreecommitdiff
path: root/paste/webkit/wkapplication.py
diff options
context:
space:
mode:
authorIan Bicking <ian@ianbicking.org>2005-08-22 23:29:31 +0000
committerIan Bicking <ian@ianbicking.org>2005-08-22 23:29:31 +0000
commit82d331036f311709b77a1e3a90a9b191c9e49c61 (patch)
tree2c91bcd0181be8babe4146c3f448429e4840f29f /paste/webkit/wkapplication.py
parent36d1c63f5e12f1dfd6d5187359093a96a2fd2de4 (diff)
downloadpaste-git-82d331036f311709b77a1e3a90a9b191c9e49c61.tar.gz
Moved webkit to separate project
Diffstat (limited to 'paste/webkit/wkapplication.py')
-rw-r--r--paste/webkit/wkapplication.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/paste/webkit/wkapplication.py b/paste/webkit/wkapplication.py
deleted file mode 100644
index 33d3f84..0000000
--- a/paste/webkit/wkapplication.py
+++ /dev/null
@@ -1,45 +0,0 @@
-"""
-A mostly dummy class to simulate the Webware Application object.
-"""
-
-from wkcommon import NoDefault
-import threading
-try:
- from TaskKit.Scheduler import Scheduler
-except ImportError:
- Scheduler = None
-
-_taskManager = None
-_makeTaskManagerLock = threading.Lock()
-
-def taskManager():
- global _taskManager
- if _taskManager is None:
- if Scheduler is None:
- assert 0, (
- "FakeWebware is not installed, and/or TaskKit is "
- "not available")
- _makeTaskManagerLock.acquire()
- try:
- if _taskManager is None:
- _taskManager = Scheduler(1)
- _taskManager.start()
- finally:
- _makeTaskManagerLock.release()
- return _taskManager
-
-class Application(object):
-
- def __init__(self, transaction):
- self._transaction = transaction
-
- def forward(self, trans, url, context=None):
- assert context is None, "Contexts are not supported"
- trans.forward(url)
-
- def setting(self, setting, default=NoDefault):
- assert default is not NoDefault, "No settings are defined"
- return default
-
- def taskManager(self):
- return taskManager()