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
1c76df54
Commit
1c76df54
authored
May 08, 2012
by
sirex
Committed by
Timothée Peignier
May 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix FinderStorage logic. close #94 and #109
parent
1fae73c3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletions
+8
-1
pipeline/storage.py
+3
-1
tests/assets2/css/third.css
+3
-0
tests/settings.py
+1
-0
tests/tests/storage.py
+1
-0
No files found.
pipeline/storage.py
View file @
1c76df54
...
...
@@ -86,7 +86,9 @@ class BaseFinderStorage(PipelineStorage):
def
find_storage
(
self
,
name
):
for
finder
in
finders
.
get_finders
():
for
path
,
storage
in
finder
.
list
([]):
if
path
.
startswith
(
os
.
path
.
dirname
(
name
)):
if
path
==
name
:
return
storage
if
os
.
path
.
splitext
(
path
)[
0
]
==
os
.
path
.
splitext
(
name
)[
0
]:
return
storage
return
None
...
...
tests/assets2/css/third.css
0 → 100644
View file @
1c76df54
.third
{
display
:
none
;
}
tests/settings.py
View file @
1c76df54
...
...
@@ -29,6 +29,7 @@ STATIC_ROOT = local_path('static/')
STATIC_URL
=
'/static/'
STATICFILES_DIRS
=
(
local_path
(
'assets/'
),
local_path
(
'assets2/'
),
)
STATICFILES_FINDERS
=
(
'staticfiles.finders.FileSystemFinder'
,
...
...
tests/tests/storage.py
View file @
1c76df54
...
...
@@ -11,6 +11,7 @@ class StorageTest(TestCase):
'testing'
:
{
'source_filenames'
:
(
'css/first.css'
,
'css/third.css'
,
),
'manifest'
:
False
,
'output_filename'
:
'testing.css'
,
...
...
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