Package kiwi :: Module component
[frames | no frames]

Module kiwi.component

Exceptions
AlreadyImplementedError Called when a utility already exists.

Function Summary
  get_utility(iface)
Get the utility for the named interface.
  provide_utility(iface, utility, replace)
Set the utility for the named interface.

Function Details

get_utility(iface)

Get the utility for the named interface. If the utility is not available (has not been set) a {NotImplementedError} is raised.
Parameters:
iface - interface to retrieve the utility for.
           (type=utility providing the interface)

provide_utility(iface, utility, replace=False)

Set the utility for the named interface. If the utility is already set, an {AlreadyImplementedError} is raised.
Parameters:
iface - interface to set the utility for.
utility - utility providing the interface.

Generated by Epydoc 2.1 on Thu Oct 19 03:18:13 2006 http://epydoc.sf.net