Package flumotion :: Package common :: Module reflectcall
[show private | hide private]
[frames | no frames]

Module flumotion.common.reflectcall

getting coherent errors when calling procedures in named modules
Function Summary
flumotion.component.component.BaseComponent createComponent(moduleName, methodName)
  reflectCallCatching(err, moduleName, methodName, *args, **kwargs)

Function Details

createComponent(moduleName, methodName)

Parameters:
moduleName - name of the module to create the component from
           (type=string)
methodName - the factory method to use to create the component
           (type=

string

Invokes the entry point for a component in the given module using the given factory method, thus creating the component.)
Returns:
flumotion.component.component.BaseComponent

reflectCallCatching(err, moduleName, methodName, *args, **kwargs)

Parameters:
err - The type of error to throw
           (type=Exception)
moduleName - name of the module to load
           (type=string)
methodName - name of the function to call
           (type=

string

Invokes a function in a given module, marshalling all errors to be of a certain type.)

Generated by Epydoc 2.1 on Mon Oct 1 03:52:14 2007 http://epydoc.sf.net