Revision: 5455 Author: multichill Date: 2008-05-28 17:01:40 +0000 (Wed, 28 May 2008)
Log Message: ----------- getLatestUploader() and new url toolserver to get things working again
Modified Paths: -------------- trunk/pywikipedia/imagecopy.py
Modified: trunk/pywikipedia/imagecopy.py =================================================================== --- trunk/pywikipedia/imagecopy.py 2008-05-28 14:34:15 UTC (rev 5454) +++ trunk/pywikipedia/imagecopy.py 2008-05-28 17:01:40 UTC (rev 5455) @@ -130,7 +130,7 @@ # tosend[k]=tosend[k].encode('utf-8') tosend=urllib.urlencode(tosend) print tosend - CH=pageTextPost('http://tools.wikimedia.de/~magnus/commonshelper.php', tosend) + CH=pageTextPost('http://www.toolserver.org/~magnus/commonshelper.php', tosend) print 'Got CH desc.' wikipedia.output(CH); tablock=CH.split('<textarea ')[1].split('>')[0] @@ -303,7 +303,7 @@ skip = True else: # The first upload is last in the list. - (datetime, username, resolution, size, comment) = imagepage.getFileVersionHistory().pop() + username = imagepage.getLatestUploader() while True:
# Do the Tkdialog to accept/reject and change te name