Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
PortalTransforms.tests.test_engine.HtmlToText Class Reference
Inheritance diagram for PortalTransforms.tests.test_engine.HtmlToText:
Inheritance graph
Collaboration diagram for PortalTransforms.tests.test_engine.HtmlToText:
Collaboration graph

List of all members.

Public Member Functions

def __call__
def convert
def name

Static Public Attributes

tuple inputs = ('text/html',)
string output = 'text/plain'

Static Private Attributes

 __implements__ = itransform

Detailed Description

Definition at line 18 of file

Member Function Documentation

def PortalTransforms.tests.test_engine.HtmlToText.__call__ (   self,

Definition at line 23 of file

00024     def __call__(self, orig, **kwargs):
00025         orig = re.sub('<[^>]*>(?i)(?m)', '', orig)
00026         return urllib.unquote(re.sub('\n+', '\n', orig)).strip()

Here is the call graph for this function:

Here is the caller graph for this function:

def PortalTransforms.tests.test_engine.HtmlToText.convert (   self,

Definition at line 27 of file

00028     def convert(self, orig, data, **kwargs):
00029         orig = self.__call__(orig)
00030         data.setData(orig)
00031         return data

Here is the caller graph for this function:

Definition at line 14 of file

00015     def name(self):
00016         return getattr(self, '__name__', self.__class__.__name__)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 19 of file

Definition at line 20 of file

Definition at line 21 of file

The documentation for this class was generated from the following file: