def add_adapter(type_or_iface, adapter):
    """ When an object of the type (or interface) ``type_or_iface`` fails
        to automatically encode using the serializer, the renderer will use
        the adapter ``adapter`` to convert it into a serializable object."""
