def files(self):
        """Returns the URLs of all files attached to posts in the thread."""
        if self.topic.has_file:
            yield self.topic.file.file_url
        for reply in self.replies:
            if reply.has_file:
                yield reply.file.file_url
def files ( self ) : if self . topic . has_file : yield self . topic . file . file_url for reply in self . replies : if reply . has_file : yield reply . file . file_url
Returns the URLs of all files attached to posts in the thread.