'Apply CRUD methods
@param r: the S3Request
@param attr: controller parameters for the request
@return: output object to send to the view'

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

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