| 491 | |
| 492 | # Update site by redownload all content.json |
| 493 | def redownloadContents(self): |
| 494 | # Download all content.json again |
| 495 | content_threads = [] |
| 496 | for inner_path in list(self.content_manager.contents.keys()): |
| 497 | content_threads.append(self.needFile(inner_path, update=True, blocking=False)) |
| 498 | |
| 499 | self.log.debug("Waiting %s content.json to finish..." % len(content_threads)) |
| 500 | gevent.joinall(content_threads) |
| 501 | |
| 502 | # Publish worker |
| 503 | def publisher(self, inner_path, peers, published, limit, diffs={}, event_done=None, cb_progress=None): |