def resource_mimetype(mimetype):
    def wrapper(cls):
        RESOURCE_MAP[mimetype] = cls
        return cls

    return wrapper
Set the mimetype for the decorated class in the resource map.
dataset/ETHPy150Open reviewboard/rbtools/rbtools/api/resource.py/resource_mimetype