Package flumotion :: Package common :: Module reflectcall
[hide private]

Module reflectcall

source code

getting coherent errors when calling procedures in named modules


Version: $Rev: 6964 $

Functions [hide private]
 
reflectCall(moduleName, methodName, *args, **kwargs) source code
 
reflectCallCatching(err, moduleName, methodName, *args, **kwargs) source code
flumotion.component.component.BaseComponent
createComponent(moduleName, methodName, config) source code
Function Details [hide private]

reflectCall(moduleName, methodName, *args, **kwargs)

source code 
Parameters:
  • moduleName (string) - name of the module to load
  • methodName (string

    Invokes a function in a given module.

    ) - name of the function to call

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

source code 
Parameters:
  • err (Exception) - The type of error to throw
  • moduleName (string) - name of the module to load
  • methodName (string

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

    ) - name of the function to call

createComponent(moduleName, methodName, config)

source code 
Parameters:
  • moduleName (string) - name of the module to create the component from
  • methodName (string) - the factory method to use to create the component
  • config (dict

    Invokes the entry point for a component in the given module using the given factory method, thus creating the component.

    ) - the component's config dict
Returns: flumotion.component.component.BaseComponent