Revision: 8466 Author: xqt Date: 2010-08-27 20:27:07 +0000 (Fri, 27 Aug 2010)
Log Message: ----------- add class=wikitable to Page.getVersionHistoryTable (feature request bug #3054503)
Modified Paths: -------------- branches/rewrite/pywikibot/page.py trunk/pywikipedia/wikipedia.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2010-08-27 05:29:37 UTC (rev 8465) +++ branches/rewrite/pywikibot/page.py 2010-08-27 20:27:07 UTC (rev 8466) @@ -989,7 +989,7 @@ step=None, total=None): """Return the version history as a wiki table."""
- result = '{| border="1"\n' + result = '{| class="wikitable"\n' result += '! oldid || date/time || username || edit summary\n' for oldid, time, username, summary \ in self.getVersionHistory(forceReload=forceReload,
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-08-27 05:29:37 UTC (rev 8465) +++ trunk/pywikipedia/wikipedia.py 2010-08-27 20:27:07 UTC (rev 8466) @@ -2683,7 +2683,7 @@ def getVersionHistoryTable(self, forceReload=False, reverseOrder=False, getAll=False, revCount=500): """Return the version history as a wiki table.""" - result = '{| border="1"\n' + result = '{| class="wikitable"\n' result += '! oldid || date/time || username || edit summary\n' for oldid, time, username, summary in self.getVersionHistory(forceReload = forceReload, reverseOrder = reverseOrder, getAll = getAll, revCount = revCount): result += '|----\n'
pywikipedia-svn@lists.wikimedia.org