]> projects.mako.cc - mw/commitdiff
fetch: Update for new metadir functions
authorIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 02:28:52 +0000 (20:28 -0600)
committerIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 02:28:52 +0000 (20:28 -0600)
src/mw/clicommands.py

index c12663c1e0fcca00d94ea902adf2a0e36fce348f..ccfc9cb3f7fc2b574bfa37c3a7d414fc34112921 100644 (file)
@@ -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'),

Benjamin Mako Hill || Want to submit a patch?