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

        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)

    # -------------------------------------------------------------------------
Entry point for REST interface
dataset/ETHPy150Open sahana/eden/modules/s3/s3summary.py/S3Summary.apply_method