Last modified: 2014-10-20 19:53:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74127, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72127 - MySQLPageGenerator syntax error
MySQLPageGenerator syntax error
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-16 11:51 UTC by John Mark Vandenberg
Modified: 2014-10-20 19:53 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-10-16 11:51:29 UTC
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'
Comment 1 Gerrit Notification Bot 2014-10-16 11:53:07 UTC
Change 166983 had a related patch set uploaded by John Vandenberg:
MySQLPageGenerator fails due to wrong classname

https://gerrit.wikimedia.org/r/166983
Comment 2 Gerrit Notification Bot 2014-10-16 15:42:53 UTC
Change 166983 merged by XZise:
MySQLPageGenerator fails due to wrong classname

https://gerrit.wikimedia.org/r/166983

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links