'Entry point for REST API
@param r: the S3Request
@param attr: controller arguments'

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

    if (r.name == 'project'):
        if (r.representation == 'html'):
            output = self.html(r, **attr)
            return output
        elif (r.representation == 'xls'):
            output = self.xls(r, **attr)
            return output
    raise HTTP(405, current.ERROR.BAD_METHOD)
