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
cbeb85ea
Commit
cbeb85ea
authored
Apr 17, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move FilterBase in filters module
parent
9e2db91b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
19 deletions
+19
-19
compress/filter_base.py
+0
-14
compress/filters/__init__.py
+14
-0
compress/filters/closure/__init__.py
+1
-1
compress/filters/csstidy/__init__.py
+1
-1
compress/filters/jsmin/__init__.py
+1
-1
compress/filters/uglifyjs/__init__.py
+1
-1
compress/filters/yui/__init__.py
+1
-1
No files found.
compress/filter_base.py
deleted
100644 → 0
View file @
9e2db91b
class
FilterBase
:
def
__init__
(
self
,
verbose
):
self
.
verbose
=
verbose
def
filter_css
(
self
,
css
):
raise
NotImplementedError
def
filter_js
(
self
,
js
):
raise
NotImplementedError
class
FilterError
(
Exception
):
"""This exception is raised when a filter fails"""
pass
compress/filters/__init__.py
View file @
cbeb85ea
class
FilterBase
:
def
__init__
(
self
,
verbose
):
self
.
verbose
=
verbose
def
filter_css
(
self
,
css
):
raise
NotImplementedError
def
filter_js
(
self
,
js
):
raise
NotImplementedError
class
FilterError
(
Exception
):
"""This exception is raised when a filter fails"""
pass
compress/filters/closure/__init__.py
View file @
cbeb85ea
import
subprocess
from
compress.conf
import
settings
from
compress.filter
_base
import
FilterBase
,
FilterError
from
compress.filter
s
import
FilterBase
,
FilterError
class
ClosureCompressorFilter
(
FilterBase
):
...
...
compress/filters/csstidy/__init__.py
View file @
cbeb85ea
...
...
@@ -4,7 +4,7 @@ import tempfile
from
django.conf
import
settings
from
compress.filter
_base
import
FilterBase
from
compress.filter
s
import
FilterBase
BINARY
=
getattr
(
settings
,
'CSSTIDY_BINARY'
,
'csstidy'
)
ARGUMENTS
=
getattr
(
settings
,
'CSSTIDY_ARGUMENTS'
,
'--template=highest'
)
...
...
compress/filters/jsmin/__init__.py
View file @
cbeb85ea
from
compress.filters.jsmin.jsmin
import
jsmin
from
compress.filter
_base
import
FilterBase
from
compress.filter
s
import
FilterBase
class
JSMinFilter
(
FilterBase
):
...
...
compress/filters/uglifyjs/__init__.py
View file @
cbeb85ea
import
subprocess
from
compress.conf
import
settings
from
compress.filter
_base
import
FilterBase
,
FilterError
from
compress.filter
s
import
FilterBase
,
FilterError
class
UglifyJSCompressorFilter
(
FilterBase
):
...
...
compress/filters/yui/__init__.py
View file @
cbeb85ea
import
subprocess
from
compress.conf
import
settings
from
compress.filter
_base
import
FilterBase
,
FilterError
from
compress.filter
s
import
FilterBase
,
FilterError
class
YUICompressorFilter
(
FilterBase
):
...
...
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