diff options
author | Sam Ockman | 2012-06-05 00:24:44 -0400 |
---|---|---|
committer | Sam Ockman | 2012-06-05 00:24:44 -0400 |
commit | 8ac39ead1014953c634e85d0ce340497ecfe2934 (patch) | |
tree | f69bef8650f64bdfa5093c39fe7dc6a8b5ffac82 /wqflask/base/myCookie.py | |
parent | 8abd879e71f492ce61e0b8d3eab53fcb43c34681 (diff) | |
download | genenetwork2-8ac39ead1014953c634e85d0ce340497ecfe2934.tar.gz |
Ran reindent.py recursively on wqflask directory
Diffstat (limited to 'wqflask/base/myCookie.py')
-rwxr-xr-x | wqflask/base/myCookie.py | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/wqflask/base/myCookie.py b/wqflask/base/myCookie.py index db5320df..add7e6ea 100755 --- a/wqflask/base/myCookie.py +++ b/wqflask/base/myCookie.py @@ -25,31 +25,27 @@ # Last updated by GeneNetwork Core Team 2010/10/20 ######################################### -## python cookie and mod python cookie are +## python cookie and mod python cookie are ## not compatible ######################################### class myCookie(dict): - 'define my own cookie' - - def __init__(self, name="", value="", expire = None, path="/"): - self['name']= name - self['value']= value - self['expire']= expire - self['path']= path - - def __getattr__(self, key): - if key in self.keys(): - return self[key] - else: - return None - - def __nonzero__ (self): - if self['name']: - return 1 - else: - return 0 - + 'define my own cookie' + def __init__(self, name="", value="", expire = None, path="/"): + self['name']= name + self['value']= value + self['expire']= expire + self['path']= path + def __getattr__(self, key): + if key in self.keys(): + return self[key] + else: + return None + def __nonzero__ (self): + if self['name']: + return 1 + else: + return 0 |