[Kss-devel] Default compression method fail (patch included)
kev at coolcavemen.com
kev at coolcavemen.com
Thu Mar 6 18:48:13 CET 2008
Hi !
Under some circumstances, the compression method of KSS fallback to the
default method. This mecanism is implemented in
kss.core.pluginregistry._concatresource.compression.
I've spotted an error in this file when the content_type is not
application/x-javascript or text/css.
Here is the error I get:
Module kss.core.pluginregistry._concatresource.compression, line 20, in
compress
018 | 'Returns compressed text for a given content type'
019 | method = compress_methods.get(content_type, default_compress_method)
020>| return method(data, compress_level)
TypeError: <lambda>() takes exactly 1 argument (2 given)
Please find as an attachment my patch to fix this problem (file:
default-compress-method-argument-number.diff).
Do you think it's a good idea to commit it in the trunk ? If you don't have
time, I can commit it for you if you give me an access to the repository.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default-compress-method-argument-number.diff
Type: application/octet-stream
Size: 513 bytes
Desc: not available
Url : http://codespeak.net/pipermail/kss-devel/attachments/20080306/18983b43/attachment.obj
More information about the Kss-devel
mailing list