easy_thumbnails.storage: 9 total statements, 0.0% covered

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

  1. from django.core.files.storage import FileSystemStorage
  2. from easy_thumbnails.conf import settings
  3. class ThumbnailFileSystemStorage(FileSystemStorage):
  4. """
  5. Standard file system storage.
  6. The default ``location`` and ``base_url`` are set to
  7. ``THUMBNAIL_MEDIA_ROOT`` and ``THUMBNAIL_MEDIA_URL``, falling back to the
  8. standard ``MEDIA_ROOT`` and ``MEDIA_URL`` if the custom settings are blank.
  9. """
  10. def __init__(self, location=None, base_url=None, *args, **kwargs):
  11. if location is None:
  12. location = settings.THUMBNAIL_MEDIA_ROOT or None
  13. if base_url is None:
  14. base_url = settings.THUMBNAIL_MEDIA_URL or None
  15. super(ThumbnailFileSystemStorage, self).__init__(location, base_url,
  16. *args, **kwargs)