Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
PortalTransforms.transforms.python.PythonTransform Class Reference
Collaboration diagram for PortalTransforms.transforms.python.PythonTransform:
Collaboration graph

List of all members.

Public Member Functions

def name
def convert

Static Public Attributes

tuple inputs = ("text/x-python",)
string output = "text/html"
dictionary config

Static Private Attributes

 __implements__ = itransform
string __name__ = "python_to_html"

Detailed Description

Colorize Python source files

Definition at line 109 of file

Member Function Documentation

def PortalTransforms.transforms.python.PythonTransform.convert (   self,

Definition at line 140 of file

00141     def convert(self, orig, data, **kwargs):
00142         dest = StringIO()
00143         Parser(orig, self.config, dest).format()
00144         data.setData(dest.getvalue())
00145         return data

Definition at line 137 of file

00138     def name(self):
00139         return self.__name__

Here is the caller graph for this function:

Member Data Documentation

Definition at line 112 of file

string PortalTransforms.transforms.python.PythonTransform.__name__ = "python_to_html" [static, private]

Definition at line 114 of file

Initial value:
        'OPEN_NUMBER':       '<span style="color: #0080C0;">',
        'CLOSE_NUMBER':      '</span>',
        'OPEN_OP':           '<span style="color: #0000C0;">',
        'CLOSE_OP':          '</span>',
        'OPEN_STRING':       '<span style="color: #004080;">',
        'CLOSE_STRING':      '</span>',
        'OPEN_COMMENT':      '<span style="color: #008000;">',
        'CLOSE_COMMENT':      '</span>',
        'OPEN_NAME':         '<span style="color: #000000;">',
        'CLOSE_NAME':        '</span>',
        'OPEN_ERRORTOKEN':   '<span style="color: #FF8080;">',
        'CLOSE_ERRORTOKEN':  '</span>',
        'OPEN_KEYWORD':      '<span style="color: #C00000;">',
        'CLOSE_KEYWORD':     '</span>',
        'OPEN_TEXT':         '',
        'CLOSE_TEXT':        '',

Definition at line 118 of file

tuple PortalTransforms.transforms.python.PythonTransform.inputs = ("text/x-python",) [static]

Definition at line 115 of file

Definition at line 116 of file

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