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
[legend]
Collaboration diagram for PortalTransforms.tests.test_engine.HtmlToTextWithEncoding:
Collaboration graph
[legend]

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 test_engine.py.


Member Function Documentation

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

Definition at line 23 of file test_engine.py.

00023 
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,
  orig,
  data,
  kwargs 
) [inherited]

Definition at line 27 of file test_engine.py.

00027 
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 test_engine.py.

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

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 test_engine.py.

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

Definition at line 21 of file test_engine.py.

Definition at line 33 of file test_engine.py.


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