def change_file(self, newfile, copy=False): self.unlock() EntryID.change_file(self, newfile, copy=copy) self._setup_cache()