summaryrefslogtreecommitdiff
path: root/src/meetingtools/utils.py
blob: cadfb3695c6b7b5681278cd1a760909fb8508477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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