Commit d125bac9 by Timothée Peignier

improve syncompress output

parent 19b53f70
......@@ -15,12 +15,13 @@ COMPRESS_VERSION_DEFAULT = getattr(settings, 'COMPRESS_VERSION_DEFAULT', '0')
COMPRESS_VERSION_REMOVE_OLD = getattr(settings, 'COMPRESS_VERSION_REMOVE_OLD', True)
COMPRESS_VERSIONING = getattr(settings, 'COMPRESS_VERSIONING', 'compress.versioning.mtime.MTimeVersioning')
COMPRESS_CSS_COMPRESSORS = getattr(settings, 'COMPRESS_CSS_COMPRESSORS', [
'compress.compressors.csstidy.YUICompressor']
)
'compress.compressors.csstidy.YUICompressor'
])
COMPRESS_JS_COMPRESSORS = getattr(settings, 'COMPRESS_JS_COMPRESSORS', [
'compress.compressors.csstidy.YUICompressor']
)
'compress.compressors.csstidy.YUICompressor'
])
COMPRESS_CSS = getattr(settings, 'COMPRESS_CSS', {})
COMPRESS_JS = getattr(settings, 'COMPRESS_JS', {})
......
......@@ -21,16 +21,16 @@ class Command(NoArgsCommand):
for package_name, package in packager.packages['css'].items():
if packager.verbose or packager.force:
print
message = "CSS Group '%s'" % package_name
print message
print len(message) * '-'
packager.pack_stylesheets(package)
print
for package_name, package in packager.packages['js'].items():
if packager.verbose or packager.force:
print
message = "JS Group '%s'" % package_name
print message
print len(message) * '-'
packager.pack_javascripts(package)
print
......@@ -28,7 +28,6 @@ class Packager(object):
)
def individual_url(self, filename):
print settings.COMPRESS_URL, filename
return urlparse.urljoin(settings.COMPRESS_URL, self.compressor.relative_path(filename)[1:])
def pack_stylesheets(self, package):
......@@ -44,7 +43,8 @@ class Packager(object):
self.versioning.version(package['paths']))
self.versioning.cleanup(package['output'])
if self.verbose or self.force:
print "Saving %s" % self.compressor.relative_path(output_filename)
print "Version: %s" % version
print "Saving: %s" % self.compressor.relative_path(output_filename)
self.save_file(output_filename, content)
signal.send(sender=self, package=package, version=version)
else:
......
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