summaryrefslogtreecommitdiff
path: root/paste/webkit/wksession.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/webkit/wksession.py')
-rw-r--r--paste/webkit/wksession.py47
1 files changed, 0 insertions, 47 deletions
diff --git a/paste/webkit/wksession.py b/paste/webkit/wksession.py
deleted file mode 100644
index 1cbdd71..0000000
--- a/paste/webkit/wksession.py
+++ /dev/null
@@ -1,47 +0,0 @@
-"""
-The WebKit session object; an interface surrounding a persistent
-dictionary.
-"""
-
-from wkcommon import NoDefault
-
-class Session:
-
- def __init__(self, dict):
- self._values = dict
-
- def invalidate(self):
- self._values.clear()
-
- def value(self, name, default=NoDefault):
- if default is NoDefault:
- return self._values[name]
- else:
- return self._values.get(name, default)
-
- def hasValue(self, name):
- return self._values.has_key(name)
-
- def setValue(self, name, value):
- self._values[name] = value
-
- def delValue(self, name):
- del self._values[name]
-
- def values(self):
- return self._values
-
- def setTimeout(self, timeout):
- # @@: This should really do something
- pass
-
- def __getitem__(self, name):
- return self.value(name)
-
- def __setitem__(self, name, value):
- self.setValue(name, value)
-
- def __delitem__(self, name):
- self.delValue(name)
-
-