Commit 33d68c81 by Alexander Artemenko

Backwards compatibility for Django r9110 and 'duplicate verbose' issue.

parent 33902d29
*.pyc
.*.swp
build
dist
MANIFEST
......@@ -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"),
)
......@@ -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>',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment