Back to index

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

List of all members.

Public Member Functions

def __call__
def convert
def name

Static Public Attributes

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

Detailed Description

Definition at line 32 of file

Member Function Documentation

def PortalTransforms.tests.test_engine.HtmlToText.__call__ (   self,
) [inherited]

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,
) [inherited]

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

tuple PortalTransforms.tests.test_engine.HtmlToText.inputs = ('text/html',) [static, inherited]

Definition at line 20 of file

string PortalTransforms.tests.test_engine.HtmlToText.output = 'text/plain' [static, inherited]

Definition at line 21 of file

Definition at line 33 of file

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