aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/cookieData.py
diff options
context:
space:
mode:
authorSam Ockman2012-06-05 00:24:44 -0400
committerSam Ockman2012-06-05 00:24:44 -0400
commit8ac39ead1014953c634e85d0ce340497ecfe2934 (patch)
treef69bef8650f64bdfa5093c39fe7dc6a8b5ffac82 /wqflask/base/cookieData.py
parent8abd879e71f492ce61e0b8d3eab53fcb43c34681 (diff)
downloadgenenetwork2-8ac39ead1014953c634e85d0ce340497ecfe2934.tar.gz
Ran reindent.py recursively on wqflask directory
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