43
43
from elisa.core.utils import defer
48
54
# TODO: factorize this code in the core of Elisa in a caching utilities module
49
55
def _thumbnail_file(thumbnail_uri):
50
56
if not os.path.exists(PICTURES_CACHE):
51
57
os.makedirs(PICTURES_CACHE, 0755)
53
59
return os.path.join(PICTURES_CACHE, thumbnail)