Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 from zope.interface import Interface
00002 
00003 class ICacheChooser(Interface):
00004 
00005     def __call__(fun_name):
00006         """Return a cache with a dict interface based on a dotted
00007         function name `fun_name`.
00008 
00009         May return None to indicate that there is no cache available.
00010         """
00011 
00012 class IXHTMLCompressor(Interface):
00013 
00014     def compress(string):
00015         """Expects a valid XHTML Unicode string as input and returns a valid
00016         XHTML Unicode string.
00017         
00018         Examples of compression are removal of whitespace without a semantical
00019         meaning, lowercasing of tags and attribute names (which gzip
00020         compression can take advantage of) or removal of comments.
00021         """