pelme / django-compress Goto Github PK
View Code? Open in Web Editor NEWGit repository for django-compress
Home Page: http://code.google.com/p/django-compress/
License: Other
Git repository for django-compress
Home Page: http://code.google.com/p/django-compress/
License: Other
Please stick a version number of your code.
The csstidy_python bits included with django-compress are GPL.
It's not obvious at all that GPL code is included. This puts anyone who uses django-compress in danger of violating the GPL without realizing it. Kinda freaked me out when I saw it.
This also puts django-compress itself in danger of violating the GPL since it is not licensed under GPL.
The easiest way to deal with this is to remove the csstidy_python filter from the project and put it in it's own GPL'd repo. so people can use it alongside django-compress if they want. But they'll know they are entering GPL land explicitly.
For a source with only external urls, synccompress raises a keyerror here:
u, version = needs_update(js['output_filename'],
js['source_filenames'])
Wrapping with try/except fixes this
try:
u, version = needs_update(js['output_filename'],
js['source_filenames'])
except KeyError:
print('JavaScript Group '%s' could not be compressed (does it only have external URLs?)' % name)
continue
I added script containg comment such as:
/*******************************************************************************
jquery.mb.components
Copyright (c) 2001-2010. Matteo Bicocchi (Pupunzi); Open lab srl, Firenze - Italy
email: [email protected]
site: http://pupunzi.com
Licences: MIT, GPL
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
******************************************************************************/
The output contains partial comment:
jquery.mb.components
Copyright(c)2001-2010.Matteo Bicocchi(Pupunzi);Open lab srl,Firenze-Italy
email:[email protected]
site:http:Licences:MIT,GPL
http:http:******************************************************************************/
I tested version checkouted from git
6f400b9
master HEAD as of 2009-12-14
Using OS X 10.4, python 2.6
I suppose this is a bug. Shouldn't comments be removed completely?
The source code and wiki pages needs to be cleaned up for django-compress. For the newcomer, it's impossible to tell what's going on. I propose:
Cheers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.