def apply_method(self, r, **attr):
        """
            Entry point for REST interface

            @param r: the S3Request
            @param attr: controller attributes
        """

        if "w" in r.get_vars:
            # Ajax-request for a specific widget
            return self.ajax(r, **attr)
        else:
            # Full page request
            return self.summary(r, **attr)

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/s3/s3summary.py/S3Summary.apply_method/original