@classmethod
def handler(cls, func):
    """
        A decorator to indicate a function is usable as a handler.

        The wrapped function must return a `webob.Response` object.
        """
    func._is_xblock_handler = True
    return func
