Revision: 5059 Author: rotem Date: 2008-02-19 17:01:39 +0000 (Tue, 19 Feb 2008)
Log Message: ----------- (bug 1895795) Another 'token not found' problem
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-02-19 16:47:42 UTC (rev 5058) +++ trunk/pywikipedia/wikipedia.py 2008-02-19 17:01:39 UTC (rev 5059) @@ -4222,8 +4222,8 @@ # Possible reason for this is the user is blocked, don't show a # warning in this case, otherwise do show a warning # Another possible reason is that the page cannot be edited - ensure - # there is a textarea - if u'<textarea' in text and not self._isBlocked[index]: + # there is a textarea and the tab "view source" is not shown + if u'<textarea' in text and u'<li id="ca-viewsource"' not in text and not self._isBlocked[index]: # Token not found output(u'WARNING: Token not found on %s. You will not be able to edit any page.' % self)