From c5096c52651bdfdabd8a9c771f55a1656eae5b5d Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 22 Oct 2012 16:31:34 +0200 Subject: use cache api for httplib2 --- meetingtools/ac/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit v1.1