summaryrefslogtreecommitdiff
path: root/src/meetingtools/ac/__init__.py
blob: 1250a5f41b7e73bff57ecdebd869b293854d5f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from meetingtools.ac.api import ACPClient

def ac_api_client_cached(request,acc):
    tag = 'ac_api_client_%s' % acc.name
    if not request.session.has_key(tag):
        request.session[tag] = ACPClient(acc.api_url,acc.user,acc.password)
        
    return request.session[tag]

def ac_api_client(request,acc):
    return ACPClient(acc.api_url,acc.user,acc.password)