Back to index

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

List of all members.

Public Member Functions

def __init__
def __getattr__
def name
def convert

Public Attributes

 config
 config_metadata

Static Private Attributes

tuple __implements__ = (itransform,)
string __name__ = "rest_to_text"

Detailed Description

Identity transform

return content unchanged.

Definition at line 9 of file identity.py.


Constructor & Destructor Documentation

def PortalTransforms.transforms.identity.IdentityTransform.__init__ (   self,
  name = None,
  kwargs 
)

Definition at line 18 of file identity.py.

00018 
00019     def __init__(self, name=None, **kwargs):
00020         self.config = {
00021             'inputs'       : ('text/x-rst',),
00022             'output'      : 'text/plain',
00023             }
00024         self.config_metadata = {
00025             'inputs'       : ('list', 'Inputs', 'Input(s) MIME type. Change with care.'),
00026             'output'      : ('string', 'Output', 'Output MIME type. Change with care.'),
00027             }
00028         self.config.update(kwargs)


Member Function Documentation

Definition at line 29 of file identity.py.

00029 
00030     def __getattr__(self, attr):
00031         if attr == 'inputs':
00032             return self.config['inputs']
00033         if attr == 'output':
00034             return self.config['output']
00035         raise AttributeError(attr)

Here is the caller graph for this function:

def PortalTransforms.transforms.identity.IdentityTransform.convert (   self,
  data,
  cache,
  kwargs 
)

Definition at line 39 of file identity.py.

00039 
00040     def convert(self, data, cache, **kwargs):
00041         cache.setData(data)
00042         return cache

Definition at line 36 of file identity.py.

00036 
00037     def name(self):
00038         return self.__name__

Here is the caller graph for this function:


Member Data Documentation

Definition at line 14 of file identity.py.

string PortalTransforms.transforms.identity.IdentityTransform.__name__ = "rest_to_text" [static, private]

Definition at line 16 of file identity.py.

Definition at line 19 of file identity.py.

Definition at line 23 of file identity.py.


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