Commit a419bf87 by Timothée Peignier

start working on django 1.4 support

parent 385c978f
......@@ -8,6 +8,8 @@ from django.core.exceptions import ImproperlyConfigured
from django.core.files.storage import FileSystemStorage, get_storage_class
from django.utils.functional import LazyObject
from django.contrib.staticfiles.storage import CachedFilesMixin # FIXME : This break if django < 1.4
from pipeline.conf import settings
......@@ -74,6 +76,17 @@ class PipelineFinderStorage(BaseFinderStorage):
finders = finders
class CachedFinderStorage(BaseFinderStorage, CachedFilesMixin):
finders = finders
def post_process(self, paths, dry_run=False, **options):
processed_files = []
if dry_run:
return processed_files
# FIXME: Do some pipeline stuff
return super(CachedFinderStorage, self).post_process(processed_files, dry_run, **options)
class DefaultStorage(LazyObject):
def _setup(self):
self._wrapped = get_storage_class(settings.PIPELINE_STORAGE)()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment