Load the cache handler for the EVEAPIConnection.

This commit is contained in:
2013-11-11 20:55:51 +00:00
parent 79d12ee1c0
commit c8f503f053

View File

@@ -1,5 +1,7 @@
import imp
from datetime import timedelta
from django.utils.timezone import now
from django.utils.module_loading import import_by_path
from django.conf import settings
from eveapi import EVEAPIConnection
@@ -39,5 +41,5 @@ class EVEAPICache(object):
def get_api_connection():
cache_handler = getattr(settings, 'EVE_SDE_CACHE_HANDLER', 'evesde.eveapi.EVEAPICache')
cache_obj = import_by_path(cache_handler)
return EVEAPIConnection(cacheHandler=cache_obj)