Revision: 7126 Author: alexsh Date: 2009-08-07 09:34:48 +0000 (Fri, 07 Aug 2009)
Log Message: ----------- Fix: correct ordinary logout SpecialPage
Modified Paths: -------------- trunk/pywikipedia/login.py
Modified: trunk/pywikipedia/login.py =================================================================== --- trunk/pywikipedia/login.py 2009-08-07 07:59:10 UTC (rev 7125) +++ trunk/pywikipedia/login.py 2009-08-07 09:34:48 UTC (rev 7126) @@ -279,15 +279,13 @@ if query.GetData({'action':'logout'}, self.site) == []: flushCk = True else: - logout_address = self.site.get_address("Special:Version") - text = self.site.getUrl(logout_address) - if wikipedia.mediawiki_message('logouttext') in text: #confirm loggedout + text = self.site.getUrl(self.site.get_address("Special:UserLogout")) + if self.site.mediawiki_message('logouttext') in text: #confirm loggedout flushCk = True
if flushCk: filename = wikipedia.config.datafilepath('login-data', - '%s-%s-%s-login.data' - % (self.site.family.name, self.site.lang, self.username)) + '%s-%s-%s-login.data' % (self.site.family.name, self.site.lang, self.username)) try: os.remove(filename) except:
pywikipedia-svn@lists.wikimedia.org