'Decorator for page handlers to set _cp_config.'

def __call__(self, *args, **kwargs):

    if args:
        raise TypeError('The    cherrypy.config    decorator    does    not    accept    positional    arguments;    you    must    use    keyword    arguments.')
    def tool_decorator(f):
        if (not hasattr(f, '_cp_config')):
            f._cp_config = {}
        for (k, v) in kwargs.items():
            f._cp_config[k] = v
        return f
    return tool_decorator
