l.n.CallbackFunction(object) : class documentation

Part of logsparser.normalizer View In Hierarchy

This class is used to define a callback function from source code present in the XML configuration file. The function is defined in a sanitized environment (imports are disabled, for instance). This class is inspired from this recipe : http://code.activestate.com/recipes/550804-create-a-restricted-python-function-from-a-string/
Method __init__ Undocumented
Method __call__ call the instance as a function to run the callback.
def __init__(self, function_body="log['test'] = value", name='unknown'):
Undocumented
def __call__(self, value, log):
call the instance as a function to run the callback.
API Documentation for logsparser, generated by pydoctor at 2011-07-19 11:51:07.