Back to index

plone3  3.1.7
Namespaces | Functions | Variables
kss.core.pluginregistry._concatresource.compression Namespace Reference

Namespaces

namespace  javascript
namespace  thirdparty

Functions

def compress

Variables

tuple __all__ = ('compress', )

Detailed Description

\
Preprocess resource files by applying compression on them

Function Documentation

def kss.core.pluginregistry._concatresource.compression.compress (   data,
  content_type,
  compress_level 
)

Definition at line 9 of file __init__.py.

00009 
00010 def compress(data, content_type, compress_level):
00011     'Returns compressed text for a given content type'
00012     assert content_type == 'application/x-javascript', \
00013         'Only application/x-javascript content types are supported.'
00014     return compress_javascript(data, compress_level)

Variable Documentation

Definition at line 5 of file __init__.py.