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
33d68c81
Commit
33d68c81
authored
Nov 17, 2008
by
Alexander Artemenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backwards compatibility for Django r9110 and 'duplicate verbose' issue.
parent
33902d29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
.gitignore
+5
-0
compress/management/commands/synccompress.py
+9
-5
setup.py
+1
-1
No files found.
.gitignore
0 → 100644
View file @
33d68c81
*.pyc
.*.swp
build
dist
MANIFEST
compress/management/commands/synccompress.py
View file @
33d68c81
...
...
@@ -6,9 +6,6 @@ from django.conf import settings
class
Command
(
NoArgsCommand
):
option_list
=
NoArgsCommand
.
option_list
+
(
make_option
(
'--force'
,
action
=
'store_true'
,
default
=
False
,
help
=
'Force update of all files, even if the source files are older than the current compressed file.'
),
make_option
(
'--verbosity'
,
action
=
'store'
,
dest
=
'verbosity'
,
default
=
'1'
,
type
=
'choice'
,
choices
=
[
'0'
,
'1'
,
'2'
],
help
=
'Verbosity level; 0=minimal output, 1=normal output, 2=all output'
),
)
help
=
'Updates and compresses CSS and JavsScript on-demand, without restarting Django'
args
=
''
...
...
@@ -48,4 +45,12 @@ class Command(NoArgsCommand):
filter_js
(
js
,
verbosity
)
if
(
force
or
u
)
or
verbosity
>=
2
:
print
\ No newline at end of file
print
# Backwards compatibility for Django r9110
if
not
[
opt
for
opt
in
Command
.
option_list
if
opt
.
dest
==
'verbosity'
]:
Command
.
option_list
+=
(
make_option
(
'--verbosity'
,
'-v'
,
action
=
"store"
,
dest
=
"verbosity"
,
default
=
'1'
,
type
=
'choice'
,
choices
=
[
'0'
,
'1'
,
'2'
],
help
=
"Verbosity level; 0=minimal output, 1=normal output, 2=all output"
),
)
setup.py
View file @
33d68c81
...
...
@@ -25,7 +25,7 @@ for dirpath, dirnames, filenames in os.walk('compress'):
setup
(
name
=
'django-compress'
,
version
=
'0.1
-svn
'
,
version
=
'0.1
.1
'
,
description
=
'django-compress provides an automated system for compressing CSS and JavaScript files'
,
author
=
'Andreas Pelme'
,
author_email
=
'Andreas Pelme <andreas@pelme.se>'
,
...
...
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