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')
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()