From: Ian Weller Date: Tue, 22 Dec 2009 07:58:26 +0000 (-0600) Subject: Rename pages_add_rev to pages_add_rv X-Git-Url: https://projects.mako.cc/source/mw/commitdiff_plain/c31798cbda2d783540acfab82452622bb5393ecd?ds=sidebyside Rename pages_add_rev to pages_add_rv --- diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index 1d5f5c8..5bddd62 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -98,8 +98,8 @@ class FetchCommand(CommandBase): continue revid = [x['revid'] for x in response[pageid]['revisions']] self.metadir.pagedict_add(pagename, int(pageid)) - self.metadir.pages_add_rev(int(pageid), - response[pageid]['revisions'][0]) + self.metadir.pages_add_rv(int(pageid), + response[pageid]['revisions'][0]) filename = mw.api.pagename_to_filename(pagename) fd = file(os.path.join(self.metadir.root, filename + '.wiki'), 'w') diff --git a/src/mw/metadir.py b/src/mw/metadir.py index 3988d78..377e048 100644 --- a/src/mw/metadir.py +++ b/src/mw/metadir.py @@ -79,7 +79,7 @@ class Metadir(object): fd.truncate() fd.close() - def pages_add_rev(self, pageid, rv): + def pages_add_rv(self, pageid, rv): pagefile = os.path.join(self.location, 'cache', 'pages', str(pageid)) fd = file(pagefile, 'w+') pagedata_raw = fd.read()