@classmethod
    def register(cls, resource_body_cls):
        resource_type = resource_body_cls.resource_type
        assert resource_type not in cls._REGISTERED_TYPES
        cls._REGISTERED_TYPES[resource_type] = resource_body_cls
        return resource_body_cls
Adds a color change listener
dataset/ETHPy150Open letsencrypt/letsencrypt/acme/acme/messages.py/Directory.register--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/addon/colorpicker/color_picker_history.py/ColorPickerHistory.addListener