Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
PortalTransforms.tests.test_engine.FooToBar Class Reference
Inheritance diagram for PortalTransforms.tests.test_engine.FooToBar:
Inheritance graph
[legend]
Collaboration diagram for PortalTransforms.tests.test_engine.FooToBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __call__
def convert
def name

Static Public Attributes

tuple inputs = ('text/*',)
string output = 'text/plain'

Static Private Attributes

 __implements__ = itransform

Detailed Description

Definition at line 35 of file test_engine.py.


Member Function Documentation

def PortalTransforms.tests.test_engine.FooToBar.__call__ (   self,
  orig,
  kwargs 
)

Definition at line 40 of file test_engine.py.

00040 
00041     def __call__(self, orig, **kwargs):
00042         orig = re.sub('foo', 'bar', orig)
00043         return urllib.unquote(re.sub('\n+', '\n', orig)).strip()

Here is the call graph for this function:

Here is the caller graph for this function:

def PortalTransforms.tests.test_engine.FooToBar.convert (   self,
  orig,
  data,
  kwargs 
)

Definition at line 44 of file test_engine.py.

00044 
00045     def convert(self, orig, data, **kwargs):
00046         orig = self.__call__(orig)
00047         data.setData(orig)
00048         return data

Here is the caller graph for this function:

Definition at line 14 of file test_engine.py.

00014 
00015     def name(self):
00016         return getattr(self, '__name__', self.__class__.__name__)
00017 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 36 of file test_engine.py.

Definition at line 37 of file test_engine.py.

Definition at line 38 of file test_engine.py.


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