Generated: Wed 2013-03-13 10:33 CET
Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/easy_thumbnails/storage.py
Stats: 0 executed, 7 missed, 2 excluded, 11 ignored
from django.core.files.storage import FileSystemStoragefrom easy_thumbnails.conf import settingsclass ThumbnailFileSystemStorage(FileSystemStorage): """ Standard file system storage. The default ``location`` and ``base_url`` are set to ``THUMBNAIL_MEDIA_ROOT`` and ``THUMBNAIL_MEDIA_URL``, falling back to the standard ``MEDIA_ROOT`` and ``MEDIA_URL`` if the custom settings are blank. """ def __init__(self, location=None, base_url=None, *args, **kwargs): if location is None: location = settings.THUMBNAIL_MEDIA_ROOT or None if base_url is None: base_url = settings.THUMBNAIL_MEDIA_URL or None super(ThumbnailFileSystemStorage, self).__init__(location, base_url, *args, **kwargs)