From dcd48d6a64f095d88681a5e0318f6f7d03acb919 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 22 Oct 2012 16:38:50 +0200 Subject: use cache api for httplib2 --- meetingtools/ac/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'meetingtools') diff --git a/meetingtools/ac/api.py b/meetingtools/ac/api.py index 23296fa..fece053 100644 --- a/meetingtools/ac/api.py +++ b/meetingtools/ac/api.py @@ -4,8 +4,7 @@ Created on Jan 31, 2011 @author: leifj ''' from StringIO import StringIO -from django.core import cache - +from django.core.cache import get_cache import httplib2 from urllib import quote_plus import logging @@ -125,7 +124,7 @@ class ACPClient(): u.append('%s=%s' % (k,quote_plus(value.encode("utf-8")))) url = self.url + '?' + '&'.join(u) - + cache = get_cache('default') h = httplib2.Http(cache,disable_ssl_certificate_validation=True); logging.debug(url) resp, content = h.request(url, "GET") -- cgit v1.1