GSoC/GCI Archive
Google Code-in 2014 Wikimedia Foundation

pywikibot: Flickr ripper Tk dialog

completed by: Slepice1

mentors: John Vandenberg

Pywikibot (PWB) is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information. Patches can be submitted via Gerrit (you need a MediaWiki.org account). More documentation on Gerrit can be found at https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task in Google Melange please do use the task in Phabricator for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC).

 Pywikibot is undergoing a rewrite which will be released as version 2.0, also called 'core'.  The majority of the code rewrite has been completed, and beta releases of the rewrite are functional and used by many bot operators on production wikis.  However some functionality from the old codebase has not been ported to the new codebase, which means Pywikibot users occasionally need to use the old codebase for some tasks.  The old codebase (called 'compat') can be found at http://git.wikimedia.org/summary/pywikibot%2Fcompat.git .

This task is to copy two configuration variables from compat to core, so that the flickr ripper script does not crash.  To complete this task, a unit test needs to be added to new test file "tests/tk_tests.py" to exercise the Tk dialog (code provided in Phabricator).  See tests/ directory for other unit tests files.

The Phabricator task is here: https://phabricator.wikimedia.org/T75025 .