'Apply method.
@param r: the S3Request
@param attr: controller options for this request'

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

    req_type = r.record.type
    if (req_type == 1):
        return self.inv_match(r, **attr)
    elif (req_type == 3):
        return self.skills_match(r, **attr)
    else:
        r.error(405, current.ERROR.BAD_METHOD)
