Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | Static Private Attributes
PortalTransforms.transforms.html_body.HTMLBody Class Reference
Collaboration diagram for PortalTransforms.transforms.html_body.HTMLBody:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def name
def __getattr__
def convert

Public Attributes

 config_metadata

Static Public Attributes

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

Private Attributes

 __name__

Static Private Attributes

 __implements__ = itransform
string __name__ = "html_body"

Detailed Description

Simple transform which extracts the content of the body tag

Definition at line 4 of file html_body.py.


Constructor & Destructor Documentation

Definition at line 13 of file html_body.py.

00013 
00014     def __init__(self, name=None):
00015         self.config_metadata = {
00016             'inputs' : ('list', 'Inputs', 'Input(s) MIME type. Change with care.'),
00017             }
00018         if name:
00019             self.__name__ = name


Member Function Documentation

Definition at line 23 of file html_body.py.

00023 
00024     def __getattr__(self, attr):
00025         if attr == 'inputs':
00026             return self.config['inputs']
00027         if attr == 'output':
00028             return self.config['output']
00029         raise AttributeError(attr)

Here is the caller graph for this function:

def PortalTransforms.transforms.html_body.HTMLBody.convert (   self,
  orig,
  data,
  kwargs 
)

Definition at line 30 of file html_body.py.

00030 
00031     def convert(self, orig, data, **kwargs):
00032         body = bodyfinder(orig)
00033         data.setData(body)
00034         return data

Here is the call graph for this function:

Definition at line 20 of file html_body.py.

00020 
00021     def name(self):
00022         return self.__name__

Here is the caller graph for this function:


Member Data Documentation

Definition at line 7 of file html_body.py.

string PortalTransforms.transforms.html_body.HTMLBody.__name__ = "html_body" [static, private]

Definition at line 9 of file html_body.py.

Definition at line 18 of file html_body.py.

Definition at line 14 of file html_body.py.

Definition at line 10 of file html_body.py.

Definition at line 11 of file html_body.py.


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