Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
a419bf87
Commit
a419bf87
authored
Nov 29, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start working on django 1.4 support
parent
385c978f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
pipeline/storage.py
+13
-0
No files found.
pipeline/storage.py
View file @
a419bf87
...
...
@@ -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
)()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment