Skip to content

Interfaces

IIIIF

Bases: Interface

This (horribly named) interface allows other plugins to hook into the IIIF plugin.

Source code in ckanext/iiif/interfaces.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
class IIIIF(interfaces.Interface):
    """
    This (horribly named) interface allows other plugins to hook into the IIIF plugin.
    """

    def register_iiif_builders(
        self, builders: OrderedDict[str, Callable[[str], Optional[dict]]]
    ):
        """
        Hook for registering IIIF builders.
        """
        pass

register_iiif_builders(builders)

Hook for registering IIIF builders.

Source code in ckanext/iiif/interfaces.py
11
12
13
14
15
16
17
def register_iiif_builders(
    self, builders: OrderedDict[str, Callable[[str], Optional[dict]]]
):
    """
    Hook for registering IIIF builders.
    """
    pass