def apply_method(self, r, **attr):

        output = {}
        if r.http == "POST":
            if r.method == "clone":
                output = self.clone(r, **attr)
            else:
                r.error(405, current.ERROR.BAD_METHOD)
        else:
            r.error(405, current.ERROR.BAD_METHOD)
        return output

    # -------------------------------------------------------------------------
Apply method
dataset/ETHPy150Open sahana/eden/modules/s3db/cap.py/cap_CloneAlert.apply_method