from builtins import object
from zope.interface import Interface


class IIndexes(Interface):

    """ Marker class """


class Indexes(object):

    """ Object actions tool """

    def __init__(self):

        self.registry = {}

    def register_index(self, name, field, idxtype):

        self.registry[name] = {'field': field, 'type': idxtype}

    def get_indexes(self):

        return list(self.registry.items())
