http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10603
Revision: 10603
Author: russblau
Date: 2012-10-23 15:32:52 +0000 (Tue, 23 Oct 2012)
Log Message:
-----------
Correct bug in last commit
Modified Paths:
--------------
branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py
===================================================================
--- branches/rewrite/pywikibot/data/api.py 2012-10-23 15:31:11 UTC (rev 10602)
+++ branches/rewrite/pywikibot/data/api.py 2012-10-23 15:32:52 UTC (rev 10603)
@@ -124,7 +124,7 @@
"protect", "block", "unblock",
"watch", "patrol",
"import", "userrights", "upload"
)
- if self.action == "edit":
+ if self.params["action"] == "edit":
pywikibot.debug(u"Adding user assertion", _logger)
self.params["assert"] = "user" # make sure user is logged
in