diff options
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 |