Revision: 6067 Author: russblau Date: 2008-11-05 22:11:33 +0000 (Wed, 05 Nov 2008)
Log Message: ----------- extract imageinfo from list
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2008-11-05 22:10:51 UTC (rev 6066) +++ branches/rewrite/pywikibot/data/api.py 2008-11-05 22:11:33 UTC (rev 6067) @@ -480,7 +480,7 @@ p = PageGenerator.result(self, pagedata) image = pywikibot.ImagePage(p) if 'imageinfo' in pagedata: - image._imageinfo = pagedata['imageinfo'] + image._imageinfo = pagedata['imageinfo'][0] return image