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
d06351e4
Commit
d06351e4
authored
Sep 30, 2012
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some pep8 issues
parent
14eb52c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
pipeline/compressors/__init__.py
+2
-2
pipeline/manifest.py
+1
-1
pipeline/storage.py
+1
-1
No files found.
pipeline/compressors/__init__.py
View file @
d06351e4
...
...
@@ -145,7 +145,7 @@ class Compressor(object):
def
construct_asset_path
(
self
,
asset_path
,
css_path
,
output_filename
,
variant
=
None
):
"""Return a rewritten asset URL for a stylesheet"""
public_path
=
self
.
absolute_path
(
asset_path
,
os
.
path
.
dirname
(
css_path
)
.
replace
(
'
\\
'
,
'/'
))
public_path
=
self
.
absolute_path
(
asset_path
,
os
.
path
.
dirname
(
css_path
)
.
replace
(
'
\\
'
,
'/'
))
if
self
.
embeddable
(
public_path
,
variant
):
return
"__EMBED__
%
s"
%
public_path
if
not
posixpath
.
isabs
(
asset_path
):
...
...
@@ -158,7 +158,7 @@ class Compressor(object):
font
=
ext
in
FONT_EXTS
if
not
variant
:
return
False
if
not
(
re
.
search
(
settings
.
PIPELINE_EMBED_PATH
,
path
.
replace
(
'
\\
'
,
'/'
))
and
self
.
storage
.
exists
(
path
)):
if
not
(
re
.
search
(
settings
.
PIPELINE_EMBED_PATH
,
path
.
replace
(
'
\\
'
,
'/'
))
and
self
.
storage
.
exists
(
path
)):
return
False
if
not
ext
in
EMBED_EXTS
:
return
False
...
...
pipeline/manifest.py
View file @
d06351e4
...
...
@@ -30,7 +30,7 @@ class PipelineManifest(Manifest):
def
cache
(
self
):
ignore_patterns
=
getattr
(
settings
,
"STATICFILES_IGNORE_PATTERNS"
,
None
)
if
settings
.
PIPELINE
:
for
package
in
self
.
packages
:
yield
str
(
self
.
packager
.
individual_url
(
package
.
output_filename
))
...
...
pipeline/storage.py
View file @
d06351e4
...
...
@@ -88,7 +88,7 @@ class BaseFinderStorage(PipelineStorage):
return
path
def
exists
(
self
,
name
):
exists
=
self
.
finders
.
find
(
name
)
!=
None
exists
=
self
.
finders
.
find
(
name
)
is
not
None
if
not
exists
:
return
super
(
BaseFinderStorage
,
self
)
.
exists
(
name
)
return
exists
...
...
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