summaryrefslogtreecommitdiff
path: root/paste/webkit/wkapplication.py
diff options
context:
space:
mode:
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()