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
f4776b78
Commit
f4776b78
authored
Jun 06, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one last renaming
parent
0e12c903
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
pipeline/conf/settings.py
+1
-1
pipeline/finders.py
+3
-3
pipeline/storage.py
+2
-2
No files found.
pipeline/conf/settings.py
View file @
f4776b78
...
@@ -16,7 +16,7 @@ PIPELINE_VERSION_REMOVE_OLD = getattr(settings, 'PIPELINE_VERSION_REMOVE_OLD', T
...
@@ -16,7 +16,7 @@ PIPELINE_VERSION_REMOVE_OLD = getattr(settings, 'PIPELINE_VERSION_REMOVE_OLD', T
PIPELINE_VERSIONING
=
getattr
(
settings
,
'PIPELINE_VERSIONING'
,
'pipeline.versioning.mtime.MTimeVersioning'
)
PIPELINE_VERSIONING
=
getattr
(
settings
,
'PIPELINE_VERSIONING'
,
'pipeline.versioning.mtime.MTimeVersioning'
)
PIPELINE_STORAGE
=
getattr
(
settings
,
'PIPELINE_STORAGE'
,
PIPELINE_STORAGE
=
getattr
(
settings
,
'PIPELINE_STORAGE'
,
'pipeline.storage.
Compress
Storage'
)
'pipeline.storage.
Pipeline
Storage'
)
PIPELINE_CSS_COMPRESSOR
=
getattr
(
settings
,
'PIPELINE_CSS_COMPRESSOR'
,
PIPELINE_CSS_COMPRESSOR
=
getattr
(
settings
,
'PIPELINE_CSS_COMPRESSOR'
,
'pipeline.compressors.yui.YUICompressor'
'pipeline.compressors.yui.YUICompressor'
...
...
pipeline/finders.py
View file @
f4776b78
from
django.contrib.staticfiles.finders
import
BaseStorageFinder
from
django.contrib.staticfiles.finders
import
BaseStorageFinder
from
pipeline.storage
import
Compress
Storage
from
pipeline.storage
import
Pipeline
Storage
class
Compress
Finder
(
BaseStorageFinder
):
class
Pipeline
Finder
(
BaseStorageFinder
):
storage
=
Compress
Storage
storage
=
Pipeline
Storage
pipeline/storage.py
View file @
f4776b78
...
@@ -8,13 +8,13 @@ from django.utils.functional import LazyObject
...
@@ -8,13 +8,13 @@ from django.utils.functional import LazyObject
from
pipeline.conf
import
settings
from
pipeline.conf
import
settings
class
Compress
Storage
(
FileSystemStorage
):
class
Pipeline
Storage
(
FileSystemStorage
):
def
__init__
(
self
,
location
=
None
,
base_url
=
None
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
location
=
None
,
base_url
=
None
,
*
args
,
**
kwargs
):
if
location
is
None
:
if
location
is
None
:
location
=
settings
.
PIPELINE_ROOT
location
=
settings
.
PIPELINE_ROOT
if
base_url
is
None
:
if
base_url
is
None
:
base_url
=
settings
.
PIPELINE_URL
base_url
=
settings
.
PIPELINE_URL
super
(
Compress
Storage
,
self
)
.
__init__
(
location
,
base_url
,
*
args
,
**
kwargs
)
super
(
Pipeline
Storage
,
self
)
.
__init__
(
location
,
base_url
,
*
args
,
**
kwargs
)
def
accessed_time
(
self
,
name
):
def
accessed_time
(
self
,
name
):
return
datetime
.
fromtimestamp
(
os
.
path
.
getatime
(
self
.
path
(
name
)))
return
datetime
.
fromtimestamp
(
os
.
path
.
getatime
(
self
.
path
(
name
)))
...
...
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