diff options
author | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:08:19 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-02-09 11:08:19 +0100 |
commit | 18fb871917ea875ed8a66c017947c2678d71f5f1 (patch) | |
tree | 90fd9bbe9d3c6842a27a7dbb4dfb614c1aa9a88b /src/templates/meetingtools/utils.py | |
parent | c33af4c971f26fcf3e7eb61a6c3dd8e8af8418a6 (diff) |
restructure 2
Diffstat (limited to 'src/templates/meetingtools/utils.py')
-rw-r--r-- | src/templates/meetingtools/utils.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/templates/meetingtools/utils.py b/src/templates/meetingtools/utils.py new file mode 100644 index 0000000..cadfb36 --- /dev/null +++ b/src/templates/meetingtools/utils.py @@ -0,0 +1,17 @@ +''' +Created on Feb 4, 2011 + +@author: leifj +''' + +def session(request,key=None,val=None): + if key: + if val: + request.session[key] = val + return val + else: + if not request.session.has_key(key): + request.session[key] = None + return request.session[key] + else: + return request.session
\ No newline at end of file |