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
2fea3118
Commit
2fea3118
authored
Dec 06, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:cyberdelia/django-pipeline
parents
5f8e211d
70853e5f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
pipeline/compressors/__init__.py
+2
-1
pipeline/packager.py
+3
-1
No files found.
pipeline/compressors/__init__.py
View file @
2fea3118
...
...
@@ -142,7 +142,8 @@ class Compressor(object):
return
"__EMBED__
%
s"
%
public_path
if
not
os
.
path
.
isabs
(
asset_path
):
asset_path
=
self
.
relative_path
(
public_path
)
return
settings
.
PIPELINE_URL
+
asset_path
[
1
:]
asset_url
=
asset_path
.
replace
(
os
.
sep
,
'/'
)
return
settings
.
PIPELINE_URL
+
asset_url
[
1
:]
def
embeddable
(
self
,
path
,
variant
):
"""Is the asset embeddable ?"""
...
...
pipeline/packager.py
View file @
2fea3118
...
...
@@ -38,8 +38,10 @@ class Packager(object):
)
def
individual_url
(
self
,
filename
):
relative_path
=
self
.
compressor
.
relative_path
(
filename
)[
1
:]
relative_url
=
relative_path
.
replace
(
os
.
sep
,
'/'
)
return
urlparse
.
urljoin
(
settings
.
PIPELINE_URL
,
self
.
compressor
.
relative_path
(
filename
)[
1
:]
)
relative_url
)
def
pack_stylesheets
(
self
,
package
,
**
kwargs
):
variant
=
package
.
get
(
'variant'
,
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