aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/cookieData.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/cookieData.py')
-rwxr-xr-xwqflask/base/cookieData.py27
1 files changed, 12 insertions, 15 deletions
diff --git a/wqflask/base/cookieData.py b/wqflask/base/cookieData.py
index 4b7c9046..eeb7c0cf 100755
--- a/wqflask/base/cookieData.py
+++ b/wqflask/base/cookieData.py
@@ -30,23 +30,20 @@
#########################################
class cookieData(dict):
- 'convert mod python Cookie object to Dict object'
+ 'convert mod python Cookie object to Dict object'
- def __init__(self, cookies=None):
+ def __init__(self, cookies=None):
- if not cookies:
- cookies={}
-
- for key in cookies.keys():
- self[key.lower()]= cookies[key].value
-
- def getvalue(self, k, default= None):
- try:
- return self[k.lower()]
- except:
- return default
-
- getfirst = getvalue
+ if not cookies:
+ cookies={}
+ for key in cookies.keys():
+ self[key.lower()]= cookies[key].value
+ def getvalue(self, k, default= None):
+ try:
+ return self[k.lower()]
+ except:
+ return default
+ getfirst = getvalue