summaryrefslogtreecommitdiff
path: root/wsgikit/webkit/wkapplication.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgikit/webkit/wkapplication.py')
-rw-r--r--wsgikit/webkit/wkapplication.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/wsgikit/webkit/wkapplication.py b/wsgikit/webkit/wkapplication.py
new file mode 100644
index 0000000..1c016a4
--- /dev/null
+++ b/wsgikit/webkit/wkapplication.py
@@ -0,0 +1,18 @@
+"""
+A mostly dummy class to simulate the Webware Application object.
+"""
+
+from wkcommon import NoDefault
+
+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