Bugs item #1975571, was opened at 2008-05-28 00:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1975571&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carsrac (carsrac)
Assigned to: Nobody/Anonymous (nobody)
Summary: ext and disambiguation
Initial Comment:
{{Desambiguáncia}} that the template for the ext wiki, if someone cares.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1975571&group_…
Revision: 5446
Author: russblau
Date: 2008-05-27 21:09:51 +0000 (Tue, 27 May 2008)
Log Message:
-----------
Args for backlinks and related methods
Modified Paths:
--------------
branches/rewrite/pywikibot/page.py
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/page.py
===================================================================
--- branches/rewrite/pywikibot/page.py 2008-05-27 20:17:35 UTC (rev 5445)
+++ branches/rewrite/pywikibot/page.py 2008-05-27 21:09:51 UTC (rev 5446)
@@ -427,19 +427,21 @@
return _isDisambig
def getReferences(self, follow_redirects=True, withTemplateInclusion=True,
- onlyTemplateInclusion=False, redirectsOnly=False):
- """Yield all pages that link to the page.
+ onlyTemplateInclusion=False, redirectsOnly=False,
+ namespaces=None):
+ """Return an iterator all pages that refer to or embed the page.
If you need a full list of referring pages, use
C{pages = list(s.getReferences())}
- @param follow_redirects: if True, also return pages that link to a
+ @param follow_redirects: if True, also iterate pages that link to a
redirect pointing to the page.
- @param withTemplateInclusion: if True, also return pages where self
+ @param withTemplateInclusion: if True, also iterate pages where self
is used as a template.
- @param onlyTemplateInclusion: if True, only return pages where self
+ @param onlyTemplateInclusion: if True, only iterate pages where self
is used as a template.
- @param redirectsOnly: if True, only return redirects to self.
+ @param redirectsOnly: if True, only iterate redirects to self.
+ @param namespaces: only iterate pages in these namespaces
"""
# N.B.: this method intentionally overlaps with backlinks() and
@@ -449,23 +451,33 @@
# split up the results for the others.
return self.site().pagereferences(
self, follow_redirects, redirectsOnly,
- withTemplateInclusion, onlyTemplateInclusion)
+ withTemplateInclusion, onlyTemplateInclusion,
+ namespaces)
- def backlinks(self, followRedirects=True, filterRedirects=None):
- """Yield all pages that contain ordinary wikilinks to this page.
+ def backlinks(self, followRedirects=True, filterRedirects=None,
+ namespaces=None):
+ """Return an iterator for pages that link to this page.
- @param followRedirects: if True, also return pages that link to a
+ @param followRedirects: if True, also iterate pages that link to a
redirect pointing to the page.
- @param filterRedirects: if True, only return redirects; if False,
+ @param filterRedirects: if True, only iterate redirects; if False,
omit redirects; if None, do not filter
+ @param namespaces: only iterate pages in these namespaces
"""
- return self.site().pagebacklinks(self, followRedirects, filterRedirects)
+ return self.site().pagebacklinks(self, followRedirects, filterRedirects,
+ namespaces)
- def embeddedin(self):
- """Yield all pages that embed this page as a template."""
- return self.site().page_embeddedin(self)
+ def embeddedin(self, filter_redirects=None, namespaces=None):
+ """Return an iterator for pages that embed this page as a template.
+ @param filterRedirects: if True, only iterate redirects; if False,
+ omit redirects; if None, do not filter
+ @param namespaces: only iterate pages in these namespaces
+
+ """
+ return self.site().page_embeddedin(self, filter_redirects, namespaces)
+
def canBeEdited(self):
"""Return bool indicating whether this page can be edited.
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2008-05-27 20:17:35 UTC (rev 5445)
+++ branches/rewrite/pywikibot/site.py 2008-05-27 21:09:51 UTC (rev 5446)
@@ -646,7 +646,7 @@
# following group of methods map more-or-less directly to API queries
def pagebacklinks(self, page, followRedirects=False, filterRedirects=None,
- namespaces=None):
+ namespaces=None):
"""Iterate all pages that link to the given page.
@param page: The Page to get links to.
Patches item #1974741, was opened at 2008-05-27 14:04
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1974741&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Sasa Stefanovic (djevrek)
>Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: sr: wiki patch for clean_sandbox.py
Initial Comment:
Serbian translation for clean_sandbox.py
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-05-27 19:37
Message:
Logged In: YES
user_id=1963242
Originator: NO
applied in r5443, thank you :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1974741&group_…
Patches item #1974405, was opened at 2008-05-27 10:04
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1974405&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Sasa Stefanovic (djevrek)
>Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: sr: wiki patch to welcome.py
Initial Comment:
Serbian translation for welcome.py
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-05-27 19:35
Message:
Logged In: YES
user_id=1963242
Originator: NO
applied in r5442, thanks :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1974405&group_…
Bugs item #1804103, was opened at 2007-09-28 06:27
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1804103&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: John Vandenberg (zeroj)
Assigned to: Nobody/Anonymous (nobody)
Summary: query.py not working
Initial Comment:
query.py appears to be out of sync with wikipeda.getUrl(). getUrl expects 'data' to be name=value pairs, however query.py is urlencoding the 'titles' data before calling it.
Also, the verbose output of "titlecount" is off by one
To see the problem, create a small test case using a sample invocation mentioned in query.py:
-- test.py --
import query
print query.GetInterwikies('ru',u'user:yurik')
-- error on execution---
Checked for running processes. 1 processes currently running, including the current process.
Traceback (most recent call last):
File "test.py", line 3, in ?
print query.GetInterwikies('ru',u'user:yurik')
File "/path/to/query.py", line 56, in GetInterwikies
return GetData( lang, params )
File "/path/to/query.py", line 40, in GetData
jsontext = site.getUrl( path, retry=True, data=data )
File "/path/to/wikipedia.py", line 3471, in getUrl
data = self.urlEncode(data)
File "/path/to/wikipedia.py", line 3279, in urlEncode
for key, value in query.iteritems():
AttributeError: 'str' object has no attribute 'iteritems'
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2008-05-27 10:39
Message:
Logged In: YES
user_id=855050
Originator: NO
This has long since been rewritten.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1804103&group_…