| Trees | Indices | Help |
|
|---|
|
|
Provides a Logger class which can be wrapped around another python class to log method calls and attribute changes.
|
|||
|
Callable this is just a simple class with a __call__ method we'll use to pass any method invocations back to the caller. |
|||
|
Logger This is the actual wrapper class. |
|||
|
|||
|
|||
|
|||
|
|||
stringTypes =
|
|||
__package__ =
|
|||
Imports: types, re, reType
|
|||
checks to see if any of the regular expressions in a list match a string **Arguments** - what: the thing to match against - checkList: the list of regexps to try the match with **Returns** 1 or 0 depending upon whether or not _what_ was found in checkList **Notes** - the search is done using _match_, so we match *any* part of _what_ |
loops through the items in a Logger log list and invokes
them in obj
**Arguments**
- logItems: a list of 3 tuples containing:
1) method name
2) tuple of positional arguments
3) dictionary of keyword arguments
- obj: the object in which the log should be replayed
**Returns**
a list with the the return values of all the method
invocations/attribute assignments
|
|
|||
stringTypes
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Apr 26 06:18:59 2013 | http://epydoc.sourceforge.net |