https://bugzilla.wikimedia.org/show_bug.cgi?id=72127
Bug ID: 72127 Summary: MySQLPageGenerator syntax error Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
MySQLPageGenerator tries to compare 'site' against pywikibot.site.Site, which doesnt exist. Bug introduced in Aug 2013 (git 2e35403), and pywikibot.site.Site didnt exist then either.
Welcome to the Pywikibot interactive shell!
import pywikibot.pagegenerators gen = pywikibot.pagegenerators.MySQLPageGenerator('SELECT * FROM DUAL') p = next(gen)
Traceback (most recent call last): File "<console>", line 1, in <module> File ".../pywikibot/pagegenerators.py", line 1451, in MySQLPageGenerator if isinstance(site, pywikibot.site.Site): AttributeError: 'module' object has no attribute 'Site'
https://bugzilla.wikimedia.org/show_bug.cgi?id=72127
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 166983 had a related patch set uploaded by John Vandenberg: MySQLPageGenerator fails due to wrong classname
https://gerrit.wikimedia.org/r/166983
https://bugzilla.wikimedia.org/show_bug.cgi?id=72127
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=72127
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 166983 merged by XZise: MySQLPageGenerator fails due to wrong classname
https://gerrit.wikimedia.org/r/166983
https://bugzilla.wikimedia.org/show_bug.cgi?id=72127
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |mpaa.wiki@gmail.com Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org