]> projects.mako.cc - mw/commitdiff
Rename pages_add_rev to pages_add_rv
authorIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 07:58:26 +0000 (01:58 -0600)
committerIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 07:58:26 +0000 (01:58 -0600)
src/mw/clicommands.py
src/mw/metadir.py

index 1d5f5c8589173e5a4e7bdf91a279d072e424e7c0..5bddd62d0be9c12c724fc637b7c9d09ae3433bee 100644 (file)
@@ -98,8 +98,8 @@ class FetchCommand(CommandBase):
                     continue
                 revid = [x['revid'] for x in response[pageid]['revisions']]
                 self.metadir.pagedict_add(pagename, int(pageid))
                     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')
                 filename = mw.api.pagename_to_filename(pagename)
                 fd = file(os.path.join(self.metadir.root, filename + '.wiki'),
                           'w')
index 3988d78981c535f4539330a5dd80dd20e448e308..377e048bd031d453abc2a6aa30ce6659b4174c4f 100644 (file)
@@ -79,7 +79,7 @@ class Metadir(object):
         fd.truncate()
         fd.close()
 
         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()
         pagefile = os.path.join(self.location, 'cache', 'pages', str(pageid))
         fd = file(pagefile, 'w+')
         pagedata_raw = fd.read()

Benjamin Mako Hill || Want to submit a patch?