1691
|
1 |
Copyright (c) 2009-2012 Django Compressor authors (see AUTHORS file)
|
|
2 |
|
|
3 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4 |
of this software and associated documentation files (the "Software"), to deal
|
|
5 |
in the Software without restriction, including without limitation the rights
|
|
6 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7 |
copies of the Software, and to permit persons to whom the Software is
|
|
8 |
furnished to do so, subject to the following conditions:
|
|
9 |
|
|
10 |
The above copyright notice and this permission notice shall be included in
|
|
11 |
all copies or substantial portions of the Software.
|
|
12 |
|
|
13 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19 |
THE SOFTWARE.
|
|
20 |
|
|
21 |
|
|
22 |
django_compressor contains code from Andreas Pelme's django-compress
|
|
23 |
--------------------------------------------------------------------
|
|
24 |
Copyright (c) 2008 Andreas Pelme <[email protected]>
|
|
25 |
|
|
26 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
27 |
of this software and associated documentation files (the "Software"), to deal
|
|
28 |
in the Software without restriction, including without limitation the rights
|
|
29 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
30 |
copies of the Software, and to permit persons to whom the Software is
|
|
31 |
furnished to do so, subject to the following conditions:
|
|
32 |
|
|
33 |
The above copyright notice and this permission notice shall be included in
|
|
34 |
all copies or substantial portions of the Software.
|
|
35 |
|
|
36 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
37 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
38 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
39 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
40 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
41 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
42 |
THE SOFTWARE.
|
|
43 |
|
|
44 |
|
|
45 |
rjsmin.py (License-information from the file)
|
|
46 |
---------------------------------------------
|
|
47 |
Copyright 2006, 2007, 2008, 2009, 2010, 2011
|
|
48 |
André Malo or his licensors, as applicable
|
|
49 |
|
|
50 |
Licensed under the Apache License, Version 2.0 (the "License");
|
|
51 |
you may not use this file except in compliance with the License.
|
|
52 |
You may obtain a copy of the License at
|
|
53 |
|
|
54 |
http://www.apache.org/licenses/LICENSE-2.0
|
|
55 |
|
|
56 |
Unless required by applicable law or agreed to in writing, software
|
|
57 |
distributed under the License is distributed on an "AS IS" BASIS,
|
|
58 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
59 |
See the License for the specific language governing permissions and
|
|
60 |
limitations under the License.
|
|
61 |
|
|
62 |
|
|
63 |
utils.cache.cached_property extracted from Celery
|
|
64 |
-------------------------------------------
|
|
65 |
Copyright (c) 2009-2011, Ask Solem and contributors.
|
|
66 |
All rights reserved.
|
|
67 |
|
|
68 |
Redistribution and use in source and binary forms, with or without
|
|
69 |
modification, are permitted provided that the following conditions are met:
|
|
70 |
|
|
71 |
* Redistributions of source code must retain the above copyright notice,
|
|
72 |
this list of conditions and the following disclaimer.
|
|
73 |
* Redistributions in binary form must reproduce the above copyright
|
|
74 |
notice, this list of conditions and the following disclaimer in the
|
|
75 |
documentation and/or other materials provided with the distribution.
|
|
76 |
|
|
77 |
Neither the name of Ask Solem nor the names of its contributors may be used
|
|
78 |
to endorse or promote products derived from this software without specific
|
|
79 |
prior written permission.
|
|
80 |
|
|
81 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
82 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
83 |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
84 |
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
85 |
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
86 |
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
87 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
88 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
89 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
90 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
91 |
POSSIBILITY OF SUCH DAMAGE.
|
|
92 |
|
|
93 |
utils.FormattableString
|
|
94 |
-----------------------
|
|
95 |
Copyright (c) 2010 by Florent Xicluna.
|
|
96 |
|
|
97 |
Some rights reserved.
|
|
98 |
|
|
99 |
Redistribution and use in source and binary forms of the software as well
|
|
100 |
as documentation, with or without modification, are permitted provided
|
|
101 |
that the following conditions are met:
|
|
102 |
|
|
103 |
* Redistributions of source code must retain the above copyright
|
|
104 |
notice, this list of conditions and the following disclaimer.
|
|
105 |
|
|
106 |
* Redistributions in binary form must reproduce the above
|
|
107 |
copyright notice, this list of conditions and the following
|
|
108 |
disclaimer in the documentation and/or other materials provided
|
|
109 |
with the distribution.
|
|
110 |
|
|
111 |
* The names of the contributors may not be used to endorse or
|
|
112 |
promote products derived from this software without specific
|
|
113 |
prior written permission.
|
|
114 |
|
|
115 |
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
116 |
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
|
|
117 |
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
118 |
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
|
119 |
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
120 |
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
121 |
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
122 |
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
123 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
124 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
125 |
SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
|
126 |
DAMAGE.
|
|
127 |
|
|
128 |
--------------------------------------------------------------------------
|
|
129 |
|
|
130 |
Apache License
|
|
131 |
Version 2.0, January 2004
|
|
132 |
http://www.apache.org/licenses/
|
|
133 |
|
|
134 |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
135 |
|
|
136 |
1. Definitions.
|
|
137 |
|
|
138 |
"License" shall mean the terms and conditions for use, reproduction,
|
|
139 |
and distribution as defined by Sections 1 through 9 of this document.
|
|
140 |
|
|
141 |
"Licensor" shall mean the copyright owner or entity authorized by
|
|
142 |
the copyright owner that is granting the License.
|
|
143 |
|
|
144 |
"Legal Entity" shall mean the union of the acting entity and all
|
|
145 |
other entities that control, are controlled by, or are under common
|
|
146 |
control with that entity. For the purposes of this definition,
|
|
147 |
"control" means (i) the power, direct or indirect, to cause the
|
|
148 |
direction or management of such entity, whether by contract or
|
|
149 |
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
150 |
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
151 |
|
|
152 |
"You" (or "Your") shall mean an individual or Legal Entity
|
|
153 |
exercising permissions granted by this License.
|
|
154 |
|
|
155 |
"Source" form shall mean the preferred form for making modifications,
|
|
156 |
including but not limited to software source code, documentation
|
|
157 |
source, and configuration files.
|
|
158 |
|
|
159 |
"Object" form shall mean any form resulting from mechanical
|
|
160 |
transformation or translation of a Source form, including but
|
|
161 |
not limited to compiled object code, generated documentation,
|
|
162 |
and conversions to other media types.
|
|
163 |
|
|
164 |
"Work" shall mean the work of authorship, whether in Source or
|
|
165 |
Object form, made available under the License, as indicated by a
|
|
166 |
copyright notice that is included in or attached to the work
|
|
167 |
(an example is provided in the Appendix below).
|
|
168 |
|
|
169 |
"Derivative Works" shall mean any work, whether in Source or Object
|
|
170 |
form, that is based on (or derived from) the Work and for which the
|
|
171 |
editorial revisions, annotations, elaborations, or other modifications
|
|
172 |
represent, as a whole, an original work of authorship. For the purposes
|
|
173 |
of this License, Derivative Works shall not include works that remain
|
|
174 |
separable from, or merely link (or bind by name) to the interfaces of,
|
|
175 |
the Work and Derivative Works thereof.
|
|
176 |
|
|
177 |
"Contribution" shall mean any work of authorship, including
|
|
178 |
the original version of the Work and any modifications or additions
|
|
179 |
to that Work or Derivative Works thereof, that is intentionally
|
|
180 |
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
181 |
or by an individual or Legal Entity authorized to submit on behalf of
|
|
182 |
the copyright owner. For the purposes of this definition, "submitted"
|
|
183 |
means any form of electronic, verbal, or written communication sent
|
|
184 |
to the Licensor or its representatives, including but not limited to
|
|
185 |
communication on electronic mailing lists, source code control systems,
|
|
186 |
and issue tracking systems that are managed by, or on behalf of, the
|
|
187 |
Licensor for the purpose of discussing and improving the Work, but
|
|
188 |
excluding communication that is conspicuously marked or otherwise
|
|
189 |
designated in writing by the copyright owner as "Not a Contribution."
|
|
190 |
|
|
191 |
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
192 |
on behalf of whom a Contribution has been received by Licensor and
|
|
193 |
subsequently incorporated within the Work.
|
|
194 |
|
|
195 |
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
196 |
this License, each Contributor hereby grants to You a perpetual,
|
|
197 |
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
198 |
copyright license to reproduce, prepare Derivative Works of,
|
|
199 |
publicly display, publicly perform, sublicense, and distribute the
|
|
200 |
Work and such Derivative Works in Source or Object form.
|
|
201 |
|
|
202 |
3. Grant of Patent License. Subject to the terms and conditions of
|
|
203 |
this License, each Contributor hereby grants to You a perpetual,
|
|
204 |
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
205 |
(except as stated in this section) patent license to make, have made,
|
|
206 |
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
207 |
where such license applies only to those patent claims licensable
|
|
208 |
by such Contributor that are necessarily infringed by their
|
|
209 |
Contribution(s) alone or by combination of their Contribution(s)
|
|
210 |
with the Work to which such Contribution(s) was submitted. If You
|
|
211 |
institute patent litigation against any entity (including a
|
|
212 |
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
213 |
or a Contribution incorporated within the Work constitutes direct
|
|
214 |
or contributory patent infringement, then any patent licenses
|
|
215 |
granted to You under this License for that Work shall terminate
|
|
216 |
as of the date such litigation is filed.
|
|
217 |
|
|
218 |
4. Redistribution. You may reproduce and distribute copies of the
|
|
219 |
Work or Derivative Works thereof in any medium, with or without
|
|
220 |
modifications, and in Source or Object form, provided that You
|
|
221 |
meet the following conditions:
|
|
222 |
|
|
223 |
(a) You must give any other recipients of the Work or
|
|
224 |
Derivative Works a copy of this License; and
|
|
225 |
|
|
226 |
(b) You must cause any modified files to carry prominent notices
|
|
227 |
stating that You changed the files; and
|
|
228 |
|
|
229 |
(c) You must retain, in the Source form of any Derivative Works
|
|
230 |
that You distribute, all copyright, patent, trademark, and
|
|
231 |
attribution notices from the Source form of the Work,
|
|
232 |
excluding those notices that do not pertain to any part of
|
|
233 |
the Derivative Works; and
|
|
234 |
|
|
235 |
(d) If the Work includes a "NOTICE" text file as part of its
|
|
236 |
distribution, then any Derivative Works that You distribute must
|
|
237 |
include a readable copy of the attribution notices contained
|
|
238 |
within such NOTICE file, excluding those notices that do not
|
|
239 |
pertain to any part of the Derivative Works, in at least one
|
|
240 |
of the following places: within a NOTICE text file distributed
|
|
241 |
as part of the Derivative Works; within the Source form or
|
|
242 |
documentation, if provided along with the Derivative Works; or,
|
|
243 |
within a display generated by the Derivative Works, if and
|
|
244 |
wherever such third-party notices normally appear. The contents
|
|
245 |
of the NOTICE file are for informational purposes only and
|
|
246 |
do not modify the License. You may add Your own attribution
|
|
247 |
notices within Derivative Works that You distribute, alongside
|
|
248 |
or as an addendum to the NOTICE text from the Work, provided
|
|
249 |
that such additional attribution notices cannot be construed
|
|
250 |
as modifying the License.
|
|
251 |
|
|
252 |
You may add Your own copyright statement to Your modifications and
|
|
253 |
may provide additional or different license terms and conditions
|
|
254 |
for use, reproduction, or distribution of Your modifications, or
|
|
255 |
for any such Derivative Works as a whole, provided Your use,
|
|
256 |
reproduction, and distribution of the Work otherwise complies with
|
|
257 |
the conditions stated in this License.
|
|
258 |
|
|
259 |
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
260 |
any Contribution intentionally submitted for inclusion in the Work
|
|
261 |
by You to the Licensor shall be under the terms and conditions of
|
|
262 |
this License, without any additional terms or conditions.
|
|
263 |
Notwithstanding the above, nothing herein shall supersede or modify
|
|
264 |
the terms of any separate license agreement you may have executed
|
|
265 |
with Licensor regarding such Contributions.
|
|
266 |
|
|
267 |
6. Trademarks. This License does not grant permission to use the trade
|
|
268 |
names, trademarks, service marks, or product names of the Licensor,
|
|
269 |
except as required for reasonable and customary use in describing the
|
|
270 |
origin of the Work and reproducing the content of the NOTICE file.
|
|
271 |
|
|
272 |
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
273 |
agreed to in writing, Licensor provides the Work (and each
|
|
274 |
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
275 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
276 |
implied, including, without limitation, any warranties or conditions
|
|
277 |
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
278 |
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
279 |
appropriateness of using or redistributing the Work and assume any
|
|
280 |
risks associated with Your exercise of permissions under this License.
|
|
281 |
|
|
282 |
8. Limitation of Liability. In no event and under no legal theory,
|
|
283 |
whether in tort (including negligence), contract, or otherwise,
|
|
284 |
unless required by applicable law (such as deliberate and grossly
|
|
285 |
negligent acts) or agreed to in writing, shall any Contributor be
|
|
286 |
liable to You for damages, including any direct, indirect, special,
|
|
287 |
incidental, or consequential damages of any character arising as a
|
|
288 |
result of this License or out of the use or inability to use the
|
|
289 |
Work (including but not limited to damages for loss of goodwill,
|
|
290 |
work stoppage, computer failure or malfunction, or any and all
|
|
291 |
other commercial damages or losses), even if such Contributor
|
|
292 |
has been advised of the possibility of such damages.
|
|
293 |
|
|
294 |
9. Accepting Warranty or Additional Liability. While redistributing
|
|
295 |
the Work or Derivative Works thereof, You may choose to offer,
|
|
296 |
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
297 |
or other liability obligations and/or rights consistent with this
|
|
298 |
License. However, in accepting such obligations, You may act only
|
|
299 |
on Your own behalf and on Your sole responsibility, not on behalf
|
|
300 |
of any other Contributor, and only if You agree to indemnify,
|
|
301 |
defend, and hold each Contributor harmless for any liability
|
|
302 |
incurred by, or claims asserted against, such Contributor by reason
|
|
303 |
of your accepting any such warranty or additional liability.
|
|
304 |
|
|
305 |
END OF TERMS AND CONDITIONS
|
|
306 |
|
|
307 |
APPENDIX: How to apply the Apache License to your work.
|
|
308 |
|
|
309 |
To apply the Apache License to your work, attach the following
|
|
310 |
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
311 |
replaced with your own identifying information. (Don't include
|
|
312 |
the brackets!) The text should be enclosed in the appropriate
|
|
313 |
comment syntax for the file format. We also recommend that a
|
|
314 |
file or class name and description of purpose be included on the
|
|
315 |
same "printed page" as the copyright notice for easier
|
|
316 |
identification within third-party archives.
|
|
317 |
|
|
318 |
Copyright [yyyy] [name of copyright owner]
|
|
319 |
|
|
320 |
Licensed under the Apache License, Version 2.0 (the "License");
|
|
321 |
you may not use this file except in compliance with the License.
|
|
322 |
You may obtain a copy of the License at
|
|
323 |
|
|
324 |
http://www.apache.org/licenses/LICENSE-2.0
|
|
325 |
|
|
326 |
Unless required by applicable law or agreed to in writing, software
|
|
327 |
distributed under the License is distributed on an "AS IS" BASIS,
|
|
328 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
329 |
See the License for the specific language governing permissions and
|
|
330 |
limitations under the License.
|