Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | Static Private Attributes
PortalTransforms.transforms.text_pre_to_html.TextPreToHTML Class Reference
Collaboration diagram for PortalTransforms.transforms.text_pre_to_html.TextPreToHTML:
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/plain-pre',)
string output = "text/html"

Private Attributes

 __name__

Static Private Attributes

 __implements__ = itransform
string __name__ = "text-pre_to_html"

Detailed Description

simple transform which wraps raw text into a <pre> tag

Definition at line 6 of file text_pre_to_html.py.


Constructor & Destructor Documentation

Definition at line 15 of file text_pre_to_html.py.

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


Member Function Documentation

Definition at line 25 of file text_pre_to_html.py.

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

Here is the caller graph for this function:

def PortalTransforms.transforms.text_pre_to_html.TextPreToHTML.convert (   self,
  orig,
  data,
  kwargs 
)

Definition at line 32 of file text_pre_to_html.py.

00032 
00033     def convert(self, orig, data, **kwargs):
00034         data.setData('<pre class="data">%s</pre>' % html_quote(orig))
00035         return data

Definition at line 22 of file text_pre_to_html.py.

00022 
00023     def name(self):
00024         return self.__name__

Here is the caller graph for this function:


Member Data Documentation

Definition at line 9 of file text_pre_to_html.py.

string PortalTransforms.transforms.text_pre_to_html.TextPreToHTML.__name__ = "text-pre_to_html" [static, private]

Definition at line 11 of file text_pre_to_html.py.

Definition at line 20 of file text_pre_to_html.py.

Definition at line 16 of file text_pre_to_html.py.

Definition at line 12 of file text_pre_to_html.py.

Definition at line 13 of file text_pre_to_html.py.


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