From c31798cbda2d783540acfab82452622bb5393ecd Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Tue, 22 Dec 2009 01:58:26 -0600 Subject: [PATCH] Rename pages_add_rev to pages_add_rv --- src/mw/clicommands.py | 4 ++-- src/mw/metadir.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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() -- 2.39.5