Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
PlonePAS.tests.test_caching.CollectResultsWrapper Class Reference
Inheritance diagram for PlonePAS.tests.test_caching.CollectResultsWrapper:
Inheritance graph
[legend]
Collaboration diagram for PlonePAS.tests.test_caching.CollectResultsWrapper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def introspect
def genWrapper

Public Attributes

 results
 klass
 name
 origname

Static Public Attributes

int count = 0

Detailed Description

Definition at line 41 of file test_caching.py.


Constructor & Destructor Documentation

def PlonePAS.tests.test_caching.CollectResultsWrapper.__init__ (   self,
  klass,
  name 
)

Reimplemented from PlonePAS.tests.test_caching.IntrospectorMethodWrapper.

Definition at line 43 of file test_caching.py.

00043 
00044     def __init__(self, klass, name):
00045         IntrospectorMethodWrapper.__init__(self, klass, name)
00046         self.results = []


Member Function Documentation

Definition at line 27 of file test_caching.py.

00027 
00028     def genWrapper(self):
00029         introspector = self
00030         def wrapper(self, *args, **kw):
00031             result = introspector._getOriginalMethod(self)(*args, **kw)
00032             return introspector.introspect(self, args, kw, result)
00033         return wrapper

def PlonePAS.tests.test_caching.CollectResultsWrapper.introspect (   self,
  instance,
  args,
  kw,
  result 
)

Reimplemented from PlonePAS.tests.test_caching.IntrospectorMethodWrapper.

Definition at line 47 of file test_caching.py.

00047 
00048     def introspect(self, instance, args, kw, result):
00049         #self.results.append((args, kw, result))
00050         self.results.append(result)
00051         return result


Member Data Documentation

Definition at line 13 of file test_caching.py.

Definition at line 16 of file test_caching.py.

Definition at line 17 of file test_caching.py.

Definition at line 18 of file test_caching.py.

Definition at line 45 of file test_caching.py.


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