def METHOD_NAME(self):
    """
    Called by request_server when the file content has been written. We either add a new content or create
    a new revision
    """
    self.temp_file.seek(0)
    if self._content is None:
        self.create_file()
    else:
        self.update_file()
    transaction.commit()
    self.temp_file.METHOD_NAME()