Author: reebalazs
Date: Thu May 3 08:31:34 2007
New Revision: 42604
Modified:
kukit/kss.concatresource/trunk/kss/concatresource/compression/css.py
kukit/kss.concatresource/trunk/kss/concatresource/compression/javascript.py
Log:
The packer needs to be created for each packing
Modified: kukit/kss.concatresource/trunk/kss/concatresource/compression/css.py
==============================================================================
--- kukit/kss.concatresource/trunk/kss/concatresource/compression/css.py
(original)
+++ kukit/kss.concatresource/trunk/kss/concatresource/compression/css.py
Thu May 3 08:31:34 2007
@@ -4,14 +4,14 @@
'''
from thirdparty.packer import CSSPacker
-
-csspacker_safe = CSSPacker('safe')
-csspacker_full = CSSPacker('full')
+# Packer needs to be created for each packing
def compress(data, compress_level):
if compress_level == "safe":
+ csspacker_safe = CSSPacker('safe')
return csspacker_safe.pack(data)
elif compress_level == "full":
+ csspacker_full = CSSPacker('full')
return csspacker_full.pack(data)
else:
# none
Modified:
kukit/kss.concatresource/trunk/kss/concatresource/compression/javascript.py
==============================================================================
--- kukit/kss.concatresource/trunk/kss/concatresource/compression/javascript.py
(original)
+++ kukit/kss.concatresource/trunk/kss/concatresource/compression/javascript.py
Thu May 3 08:31:34 2007
@@ -3,14 +3,14 @@
that is taken from Plone's ResourceRegistries.'''
from thirdparty.packer import JavascriptPacker
-
-jspacker_safe = JavascriptPacker('safe')
-jspacker_full = JavascriptPacker('full')
+# Packer needs to be created for each packing
def compress(data, compress_level):
if compress_level == "safe":
+ jspacker_safe = JavascriptPacker('safe')
return jspacker_safe.pack(data)
elif compress_level == "full":
+ jspacker_full = JavascriptPacker('full')
return jspacker_full.pack(data)
else:
# none
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins