'Page-render entry point for REST interface.
@param r: the S3Request instance
@param attr: controller attributes for the request'

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

    if (r.http == 'GET'):
        output = self.timeplot(r, **attr)
    else:
        r.error(405, current.ERROR.BAD_METHOD)
    return output
