diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-22 16:31:34 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-22 16:31:34 +0200 |
commit | c5096c52651bdfdabd8a9c771f55a1656eae5b5d (patch) | |
tree | ec52eba7fc741040e9f7061b855709e97083f4c8 | |
parent | a9885283644bfa85ffe947854418755adb3edf6a (diff) |
use cache api for httplib2
-rw-r--r-- | meetingtools/ac/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meetingtools/ac/api.py b/meetingtools/ac/api.py index 2f53b74..23296fa 100644 --- a/meetingtools/ac/api.py +++ b/meetingtools/ac/api.py @@ -4,6 +4,7 @@ Created on Jan 31, 2011 @author: leifj ''' from StringIO import StringIO +from django.core import cache import httplib2 from urllib import quote_plus @@ -125,7 +126,7 @@ class ACPClient(): url = self.url + '?' + '&'.join(u) - h = httplib2.Http(tempfile.gettempdir()+os.sep+".cache",disable_ssl_certificate_validation=True); + h = httplib2.Http(cache,disable_ssl_certificate_validation=True); logging.debug(url) resp, content = h.request(url, "GET") logging.debug(pformat(resp)) |