def METHOD_NAME(self, **kwargs):
    # figure out the MIME type
    for ext in self.component.mime_types:
        if self.office.name.lower().endswith(ext):
            content_type = self.component.mime_types[ext]
            break
    response = HttpResponse(content_type=content_type)
    self.sendfile(self.office, response)
    return response