def search_adapter_info(wid, flavour=None):
    """Given a widget returns the default tuple found in __def_adapter.

    @param flavour can be used to specialize the search for a
    particular tuple.
    """
    t = (type(wid), flavour)
    if t in __memoize__:
        return __memoize__[t]

    for w in __def_adapter:
        if (isinstance(wid, w[WIDGET]) and flavour == w[FLAVOUR]):
            __memoize__[t] = w
            return w

    raise TypeError("Adapter type " + str(t) + " not found among supported adapters")