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
0a7b5496
Commit
0a7b5496
authored
May 30, 2012
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a non-packaging storage
parent
1758e5ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
pipeline/storage.py
+20
-2
No files found.
pipeline/storage.py
View file @
0a7b5496
...
@@ -15,6 +15,8 @@ from pipeline.conf import settings
...
@@ -15,6 +15,8 @@ from pipeline.conf import settings
class
PipelineMixin
(
object
):
class
PipelineMixin
(
object
):
packing
=
True
def
post_process
(
self
,
paths
,
dry_run
=
False
,
**
options
):
def
post_process
(
self
,
paths
,
dry_run
=
False
,
**
options
):
if
dry_run
:
if
dry_run
:
return
[]
return
[]
...
@@ -23,11 +25,15 @@ class PipelineMixin(object):
...
@@ -23,11 +25,15 @@ class PipelineMixin(object):
packager
=
Packager
(
storage
=
self
)
packager
=
Packager
(
storage
=
self
)
for
package_name
in
packager
.
packages
[
'css'
]:
for
package_name
in
packager
.
packages
[
'css'
]:
package
=
packager
.
package_for
(
'css'
,
package_name
)
package
=
packager
.
package_for
(
'css'
,
package_name
)
output_file
=
packager
.
pack_stylesheets
(
package
)
output_file
=
package
.
output_filename
if
self
.
packing
:
packager
.
pack_stylesheets
(
package
)
paths
[
output_file
]
=
(
self
,
output_file
)
paths
[
output_file
]
=
(
self
,
output_file
)
for
package_name
in
packager
.
packages
[
'js'
]:
for
package_name
in
packager
.
packages
[
'js'
]:
package
=
packager
.
package_for
(
'js'
,
package_name
)
package
=
packager
.
package_for
(
'js'
,
package_name
)
output_file
=
packager
.
pack_javascripts
(
package
)
output_file
=
package
.
output_filename
if
self
.
packing
:
packager
.
pack_javascripts
(
package
)
paths
[
output_file
]
=
(
self
,
output_file
)
paths
[
output_file
]
=
(
self
,
output_file
)
super_class
=
super
(
PipelineMixin
,
self
)
super_class
=
super
(
PipelineMixin
,
self
)
...
@@ -45,14 +51,26 @@ class PipelineMixin(object):
...
@@ -45,14 +51,26 @@ class PipelineMixin(object):
return
name
return
name
class
NonPackagingMixin
(
object
):
packing
=
False
class
PipelineStorage
(
PipelineMixin
,
StaticFilesStorage
):
class
PipelineStorage
(
PipelineMixin
,
StaticFilesStorage
):
pass
pass
class
NonPackagingPipelineStorage
(
NonPackagingMixin
,
PipelineStorage
):
pass
class
PipelineCachedStorage
(
PipelineMixin
,
CachedFilesMixin
,
StaticFilesStorage
):
class
PipelineCachedStorage
(
PipelineMixin
,
CachedFilesMixin
,
StaticFilesStorage
):
pass
pass
class
NonPackagingPipelineCachedStorage
(
NonPackagingMixin
,
PipelineCachedStorage
):
pass
class
BaseFinderStorage
(
PipelineStorage
):
class
BaseFinderStorage
(
PipelineStorage
):
finders
=
None
finders
=
None
...
...
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