Revision: 5875 Author: russblau Date: 2008-09-04 21:54:53 +0000 (Thu, 04 Sep 2008)
Log Message: ----------- fix recursive-login bug
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2008-09-04 18:35:41 UTC (rev 5874) +++ branches/rewrite/pywikibot/site.py 2008-09-04 21:54:53 UTC (rev 5875) @@ -351,6 +351,7 @@ } self.sitelock = threading.Lock() self._msgcache = {} + self._username = "" return
# ANYTHING BELOW THIS POINT IS NOT YET IMPLEMENTED IN __init__() @@ -419,7 +420,7 @@
""" if not hasattr(self, "_userinfo") or "rights" not in self._userinfo \ - or self._userinfo['name'] != self.user(): + or self._userinfo['name'] != self._username: uirequest = api.Request( site=self, action="query",
pywikipedia-l@lists.wikimedia.org