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
4260faf1
Commit
4260faf1
authored
Dec 15, 2012
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix formatting
parent
c07721a2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
2 deletions
+2
-2
pipeline/compilers/__init__.py
+0
-0
pipeline/compressors/__init__.py
+1
-0
pipeline/jinja2/ext.py
+1
-2
pipeline/storage.py
+0
-0
pipeline/templatetags/compressed.py
+0
-0
No files found.
pipeline/compilers/__init__.py
View file @
4260faf1
pipeline/compressors/__init__.py
View file @
4260faf1
...
@@ -232,6 +232,7 @@ class SubProcessCompressor(CompressorBase):
...
@@ -232,6 +232,7 @@ class SubProcessCompressor(CompressorBase):
def
execute_command
(
self
,
command
,
content
):
def
execute_command
(
self
,
command
,
content
):
pipe
=
subprocess
.
Popen
(
command
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
pipe
=
subprocess
.
Popen
(
command
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stdin
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stdin
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
try
:
try
:
pipe
.
stdin
.
write
(
smart_str
(
content
))
pipe
.
stdin
.
write
(
smart_str
(
content
))
except
IOError
,
e
:
except
IOError
,
e
:
...
...
pipeline/jinja2/ext.py
View file @
4260faf1
...
@@ -46,8 +46,7 @@ class Jinja2Compressed(object):
...
@@ -46,8 +46,7 @@ class Jinja2Compressed(object):
if
type
(
getattr
(
pipeline_settings
,
setting
))
==
str
:
if
type
(
getattr
(
pipeline_settings
,
setting
))
==
str
:
val
=
"'
%
s'"
%
val
val
=
"'
%
s'"
%
val
val
=
val
if
val
else
"''"
val
=
val
if
val
else
"''"
expr
=
"pipeline_settings.
%
s =
%
s"
%
(
expr
=
"pipeline_settings.
%
s =
%
s"
%
(
setting
,
val
)
setting
,
val
)
exec
expr
exec
expr
pipeline_settings
.
PIPELINE
=
getattr
(
django_settings
,
pipeline_settings
.
PIPELINE
=
getattr
(
django_settings
,
'PIPELINE'
,
not
django_settings
.
DEBUG
)
'PIPELINE'
,
not
django_settings
.
DEBUG
)
...
...
pipeline/storage.py
View file @
4260faf1
pipeline/templatetags/compressed.py
View file @
4260faf1
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