Module k.component

Part of kiwi
Undocumented
ClassInterfaceUndocumented
ClassAttributeUndocumented
FunctionimplementsUndocumented
ClassAlreadyImplementedError

Called when a utility already exists.

Class_UtilityHandlerUndocumented
Functionprovide_utility

Set the utility for the named interface. If the utility is already

Functionget_utility

Get the utility for the named interface. If the utility is not

Functionremove_utility

Remove the utility provided for an interface

def implements(iface):
Undocumented
def provide_utility(iface, utility, replace=False):

Set the utility for the named interface. If the utility is already set, an {AlreadyImplementedError} is raised.

def get_utility(iface, default=ValueUnset):

Get the utility for the named interface. If the utility is not available (has not been set) a {NotImplementedError} is raised unless default is set.

def remove_utility(iface):

Remove the utility provided for an interface If the utility is not available (has not been set) {NotImplementedError} is raised.