And instead of changing getVersionHistory() everytime the format changes? =)
2009/2/18 Russell Blau <[email protected]>: > I've said this before, but nobody pays any attention -- > > Wouldn't it make more sense to help finish the rewrite branch, which uses > the API for *everything*, instead of inconsistently patching individual > pieces of the framework to use the API for specific tasks??? > > > ----- Original Message ----- > From: <[email protected]> > To: <[email protected]> > Sent: Wednesday, February 18, 2009 9:10 AM > Subject: [Pywikipedia-l] SVN: [6366] trunk/pywikipedia/wikipedia.py > > >> Revision: 6366 >> Author: filnik >> Date: 2009-02-18 14:10:57 +0000 (Wed, 18 Feb 2009) >> >> Log Message: >> ----------- >> Better to delete this.. >> >> Modified Paths: >> -------------- >> trunk/pywikipedia/wikipedia.py >> >> Modified: trunk/pywikipedia/wikipedia.py >> =================================================================== >> --- trunk/pywikipedia/wikipedia.py 2009-02-18 13:49:52 UTC (rev 6365) >> +++ trunk/pywikipedia/wikipedia.py 2009-02-18 14:10:57 UTC (rev 6366) >> @@ -2880,28 +2880,6 @@ >> output(u'Image deleted before getting the Hash. Skipping...') >> return None >> >> - def getDuplicates(self): >> - #action=query&titles=File:Ayasegawa.jpg&prop=duplicatefiles >> - """ >> - Function that detects if a user is currently blocked or not. >> - """ >> - params = { >> - 'action' :'query', >> - 'titles' : self.title(), >> - 'prop' :'duplicatefiles', >> - } >> - >> - data = query.GetData(params, >> - useAPI = True, encodeTitle = False) >> - pageid = data[u'query'][u'pages'].keys()[0] >> - duplicates = list() >> - try: >> - for duplicateData in >> data[u'query'][u'pages'][pageid][u'duplicatefiles']: >> - duplicates.append(duplicateData[u"name"]) >> - return duplicates >> - except KeyError: >> - return None >> - >> def getFileVersionHistoryTable(self): >> """Return the version history in the form of a wiki table.""" >> lines = [] >> >> >> >> _______________________________________________ >> Pywikipedia-l mailing list >> [email protected] >> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l >> > > > _______________________________________________ > Pywikipedia-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l > -- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ] _______________________________________________ Pywikipedia-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
