Bugs item #3600344, was opened at 2013-01-10 21:45 Message generated for change (Comment added) made by nu11zer0 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3600344...
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: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nullzer0 (nu11zer0) Assigned to: Nobody/Anonymous (nobody) Summary: LinkedPageGenerator does not give correct links
Initial Comment: I noticed that when I use pagegenerators.LinkedPageGenerator with page "xyz" that contains wikilink "[[/abc]]", LinkedPageGenerator return [[/abc]] to me. However, in my opinion, it should return "[[xyz/abc]]."
Pywikipedia trunk/pywikipedia/ (r10880, 2013/01/10, 21:11:31) Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0) Date: 2013-03-02 20:24
Message: This bug is partly solved. There are still some incorrect cases. However, I have sent a patch in Patches Tracker. It is okay to close this bug.
----------------------------------------------------------------------
Comment By: Hazard-SJ (hazard-sj) Date: 2013-03-02 14:49
Message: I just tried this on en.wikipedia.org and there seems to be no problem. This can be closed.
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0) Date: 2013-01-25 03:59
Message: I solved this problem by adding following code to function linkedPages()
if title.startswith("/") or title.startswith(".."): if title.startswith("/"): title = title[1:] title = os.path.normpath(os.path.join(self.title(), title))
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3600344...
pywikipedia-bugs@lists.wikimedia.org