diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-22 16:38:50 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-22 16:38:50 +0200 |
commit | dcd48d6a64f095d88681a5e0318f6f7d03acb919 (patch) | |
tree | 44b7dc3638f0cf778298d85c3385091ddb60165f /meetingtools | |
parent | c5096c52651bdfdabd8a9c771f55a1656eae5b5d (diff) |
use cache api for httplib2
Diffstat (limited to 'meetingtools')
-rw-r--r-- | meetingtools/ac/api.py | 5 |
1 files changed, 2 insertions, 3 deletions
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") |