def METHOD_NAME(self, name, solid=False):
    """A decorator"""
    def _reg_cmap(func):
        func.name = name
        self[name] = func
        if solid:
            self.solid_cmaps.append(name)
        return func
    return _reg_cmap