Back to index

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

List of all members.

Public Member Functions

def __init__
def name
def __getattr__
def convert

Public Attributes

 config
 config_metadata

Static Public Attributes

string output = "text/html"

Private Attributes

 __name__

Static Private Attributes

 __implements__ = itransform
string __name__ = "web_intelligent_plain_text_to_html"

Detailed Description

Transform which replaces urls and email into hyperlinks

Definition at line 4 of file web_intelligent_plain_text_to_html.py.


Constructor & Destructor Documentation

def PortalTransforms.transforms.web_intelligent_plain_text_to_html.WebIntelligentPlainTextToHtml.__init__ (   self,
  name = None,
  inputs = ('text/x-web-intelligent',,
  tab_width = 4 
)

Definition at line 12 of file web_intelligent_plain_text_to_html.py.

00012 
00013     def __init__(self, name=None, inputs=('text/x-web-intelligent',), tab_width = 4):
00014         self.config = { 'inputs' : inputs, 'tab_width' : 4}
00015         self.config_metadata = {
00016             'inputs' : ('list', 'Inputs', 'Input(s) MIME type. Change with care.'),
00017             'tab_width' : ('string', 'Tab width', 'Number of spaces for a tab in the input')
00018             }
00019         if name:
00020             self.__name__ = name
        

Member Function Documentation

Definition at line 24 of file web_intelligent_plain_text_to_html.py.

00024 
00025     def __getattr__(self, attr):
00026         if attr in self.config:
00027             return self.config[attr]
00028         raise AttributeError(attr)

Here is the caller graph for this function:

Definition at line 29 of file web_intelligent_plain_text_to_html.py.

00029 
00030     def convert(self, orig, data, **kwargs):
00031         text = convertWebIntelligentPlainTextToHtml(orig, tab_width=self.tab_width)
00032         data.setData(text)
00033         return data

Here is the call graph for this function:

Definition at line 21 of file web_intelligent_plain_text_to_html.py.

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

Here is the caller graph for this function:


Member Data Documentation

Definition at line 7 of file web_intelligent_plain_text_to_html.py.

Definition at line 9 of file web_intelligent_plain_text_to_html.py.

Definition at line 19 of file web_intelligent_plain_text_to_html.py.

Definition at line 13 of file web_intelligent_plain_text_to_html.py.

Definition at line 14 of file web_intelligent_plain_text_to_html.py.

Definition at line 10 of file web_intelligent_plain_text_to_html.py.


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