Revision: 5867
Author: russblau
Date: 2008-08-29 19:08:34 +0000 (Fri, 29 Aug 2008)
Log Message:
-----------
supply missing namespace and argument
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2008-08-29 19:07:49 UTC (rev 5866)
+++ branches/rewrite/pywikibot/site.py 2008-08-29 19:08:34 UTC (rev 5867)
@@ -433,9 +433,11 @@
return self._userinfo
def getcurrenttimestamp(self):
- """Returns a (Mediawiki) timestamp, {{CURRENTTIMESTAMP}},
- the server time.
- Format is yyyymmddhhmmss"""
+ """Return (Mediawiki) timestamp, {{CURRENTTIMESTAMP}}, the server
time.
+
+ Format is yyyymmddhhmmss
+
+ """
r = api.Request(site=self,
action="parse",
text="{{CURRENTTIMESTAMP}}")
@@ -1438,8 +1440,8 @@
raise Error("search: searchstring cannot be empty")
if where not in ("text", "titles"):
raise Error("search: unrecognized 'where' value: %s" %
where)
- srgen = PageGenerator("search", gsrsearch=searchstring, gsrwhat=where,
- site=self)
+ srgen = api.PageGenerator("search", gsrsearch=searchstring,
+ gsrwhat=where, site=self)
if not namespaces:
logger.warning("search: namespaces cannot be empty; using [0].")
namespaces = [0]
@@ -1509,7 +1511,7 @@
def watchlist_revs(self, start=None, end=None, reverse=False,
namespaces=None, showMinor=None, showBot=None,
- showAnon=None):
+ showAnon=None, limit=None):
"""Iterate revisions to pages on the bot user's watchlist.
Iterated values will be in same format as recentchanges.
@@ -1526,7 +1528,8 @@
None), only list non-bot edits
@param showAnon: if True, only list anon edits; if False (and not
None), only list non-anon edits
-
+ @param limit: Maximum number of revisions to iterate
+
"""
if start and end:
if reverse: