Revision: 8660 Author: xqt Date: 2010-10-17 16:18:45 +0000 (Sun, 17 Oct 2010)
Log Message: ----------- globalusers_address added
Modified Paths: -------------- trunk/pywikipedia/family.py trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2010-10-16 18:43:42 UTC (rev 8659) +++ trunk/pywikipedia/family.py 2010-10-17 16:18:45 UTC (rev 8660) @@ -3765,13 +3765,13 @@ return '%s?title=%s&action=unprotect&useskin=monobook' % (self.path(code), name)
def block_address(self, code): - return '%s?title=%s:Blockip&action=submit&useskin=monobook' % (self.path(code), self.special_namespace_url(code)) + return '%s?title=%s:Blockip&action=submit&useskin=monobook' % (self.path(code), self.special_namespace_url(code))
def unblock_address(self, code): - return '%s?title=%s:Ipblocklist&action=submit&useskin=monobook' % (self.path(code), self.special_namespace_url(code)) + return '%s?title=%s:Ipblocklist&action=submit&useskin=monobook' % (self.path(code), self.special_namespace_url(code))
def blocksearch_address(self, code, name): - return '%s?title=%s:Ipblocklist&action=search&ip=%s&useskin=monobook' % (self.path(code), self.special_namespace_url(code), name) + return '%s?title=%s:Ipblocklist&action=search&ip=%s&useskin=monobook' % (self.path(code), self.special_namespace_url(code), name)
def linksearch_address(self, code, link, limit=500, offset=0): return '%s?title=%s:Linksearch&limit=%d&offset=%d&target=%s&useskin=monobook' % (self.path(code), self.special_namespace_url(code), limit, offset, link) @@ -3782,6 +3782,9 @@ def export_address(self, code): return '%s?title=%s:Export&useskin=monobook' % (self.path(code), self.special_namespace_url('_default'))
+ def globalusers_address(self, code, target='', limit=500, offset='', group=''): + return '%s?title=%s:GlobalUsers&username=%s&limit=%s&offset=%s&group=%s&useskin=monobook' % (self.path(code), self.special_namespace_url(code), target, limit, offset, group) + def query_address(self, code): return '%s?' % self.querypath(code)
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-10-16 18:43:42 UTC (rev 8659) +++ trunk/pywikipedia/wikipedia.py 2010-10-17 16:18:45 UTC (rev 8660) @@ -7127,6 +7127,10 @@ """Return path to Special:Contributions for user 'target'.""" return self.family.contribs_address(self.lang,target,limit,offset)
+ def globalusers_address(self, target='', limit=500, offset='', group=''): + """Return path to Special:GlobalUsers for user 'target' and/or group 'group'.""" + return self.family.globalusers_address(self.lang, target, limit, offset, group) + def __hash__(self): return hash(repr(self))
pywikipedia-svn@lists.wikimedia.org