From: Ian Weller Date: Tue, 22 Dec 2009 02:28:52 +0000 (-0600) Subject: fetch: Update for new metadir functions X-Git-Url: https://projects.mako.cc/source/mw/commitdiff_plain/0e4d5bae708769d63d12270f1309d13e81cfbbfb?ds=sidebyside fetch: Update for new metadir functions --- diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index c12663c..ccfc9cb 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -96,10 +96,10 @@ class FetchCommand(CommandBase): (self.me, response[pageid]['title']) continue revid = [x['revid'] for x in response[pageid]['revisions']] - self.metadir.add_page_info(int(pageid), - response[pageid]['title'], - revid) - self.metadir.add_rv_info(response[pageid]['revisions'][0]) + self.metadir.pagedict_add(response[pageid]['title'], + int(pageid)) + self.metadir.pages_add_rev(int(pageid), + response[pageid]['revisions'][0]) filename = response[pageid]['title'].replace(' ', '_') filename = filename.replace('/', '!') fd = file(os.path.join(self.metadir.root, filename + '.wiki'),