Feature Requests item #3574557, was opened at 2012-10-04 13:02
Message generated for change (Comment added) made by jandudik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3574557&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: Interface Improvements
Group: None
Status: Closed
Resolution: Rejected
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: solve_disambiguations and templates
Initial Comment:
It would be fine, if I can define (or global defined) templates and parametersm which means links.
example:
{{Infobox foo
|name = bar
|link=Article
|description=Lorem ipsum
}}
where [[Article]] is disambiguation
When I run solve_disambiguation, bot got message No changes needed in "Page"
I want to replace Article -> Article (main)
but when it is not in brackets...
If there exists such list of templates and parameters, bot should recognize parameter link= in template {{Infobox foo}} and replace it
----------------------------------------------------------------------
Comment By: JAn (jandudik)
Date: 2013-01-29 07:44
Message:
There are huge pages on cs.wiki containing only such templates (WLM).
and there are often several links to disambiguations - village with same
name in one list - sou replace or fixes are hard-to-use,
solve_disambiguation woud be better.
And there should be definition lists for every language
cs {
template1=Památky v Česku
link1=Odkaz_obec
template2=foo
link2=bar
}
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:29
Message:
There is a way to use the more generic replace.py or fixes.py to do that.
There is no way to see whether the link parameter is a real wiki link. It
may also be a database link of a foreign databased website
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 08:03
Message:
I don't agree with this feature. {{Other uses}} and other templates which
have the same function will be affected incorrectly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3574557&group_…
Bugs item #3602373, was opened at 2013-01-28 04:39
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3602373&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: rewrite
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 9
Private: No
Submitted By: Russell Blau (russblau)
>Assigned to: xqt (xqt)
Summary: Bot crashes on all Wikimedia sites
Initial Comment:
Some recent changes to family.py are causing the bot to be unable to function on any Wikimedia site:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywikibot
>>> s = pywikibot.Site()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\__init__.py
", line 124, in wrapper
return method(*__args, **__kw)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\__init__.py
", line 172, in Site
_sites[key] = __Site(code=code, fam=fam, user=user, sysop=sysop)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\site.py", l
ine 657, in __init__
BaseSite.__init__(self, code, fam, user, sysop)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\site.py", l
ine 117, in __init__
self.__family = Family(fam, fatal=False)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\site.py", l
ine 95, in Family
return myfamily.Family()
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\families\wi
kipedia_family.py", line 10, in __init__
super(Family, self).__init__()
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\family.py",
line 923, in __init__
self.namespacesWithSubpage.extend([4, 12])
AttributeError: 'Family' object has no attribute 'namespacesWithSubpage'
>>>
Output of version.py is:
>>>
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-29 00:41
Message:
I forgot it first to assign it to Family class while copying from trunk.
Sorry for that. Fixed in r11014
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3602373&group_…
Bugs item #3602373, was opened at 2013-01-28 04:39
Message generated for change (Tracker Item Submitted) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3602373&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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 9
Private: No
Submitted By: Russell Blau (russblau)
Assigned to: Russell Blau (russblau)
Summary: Bot crashes on all Wikimedia sites
Initial Comment:
Some recent changes to family.py are causing the bot to be unable to function on any Wikimedia site:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywikibot
>>> s = pywikibot.Site()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\__init__.py
", line 124, in wrapper
return method(*__args, **__kw)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\__init__.py
", line 172, in Site
_sites[key] = __Site(code=code, fam=fam, user=user, sysop=sysop)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\site.py", l
ine 657, in __init__
BaseSite.__init__(self, code, fam, user, sysop)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\site.py", l
ine 117, in __init__
self.__family = Family(fam, fatal=False)
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\site.py", l
ine 95, in Family
return myfamily.Family()
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\families\wi
kipedia_family.py", line 10, in __init__
super(Family, self).__init__()
File "C:\Documents and Settings\HP_Administrator\rewrite\pywikibot\family.py",
line 923, in __init__
self.namespacesWithSubpage.extend([4, 12])
AttributeError: 'Family' object has no attribute 'namespacesWithSubpage'
>>>
Output of version.py is:
>>>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3602373&group_…
Patches item #3602369, was opened at 2013-01-28 04:04
Message generated for change (Tracker Item Submitted) made by beta16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602369&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: Luca Rabinelli (beta16)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wikidata: edit label
Initial Comment:
Use of 'wbsetitem' (not documented, maybe deprecated) return this error: "code":"unknown_action","info":"Unrecognized value for parameter 'action': wbsetitem"
Replaced with API 'wbsetlabel'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602369&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 10:52
Message:
New patch has been uploaded.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 09:40
Message:
yes. Fixed in r11010.
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 09:38
Message:
Well, it should be self.site.family.namespacesWithSubpage rather than
self.site.namespacesWithSubpage.
----------------------------------------------------------------------
Comment By: GanZ (ganz-ru)
Date: 2013-01-27 09:28
Message:
After this patch I get an error on any interwiki.py task:
Traceback (most recent call last):
File "U:\pywikipedia 4\interwiki.py", line 2589, in <module>
main()
File "U:\pywikipedia 4\interwiki.py", line 2563, in main
bot.run()
File "U:\pywikipedia 4\interwiki.py", line 2296, in run
self.queryStep()
File "U:\pywikipedia 4\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "U:\pywikipedia 4\interwiki.py", line 2265, in oneQuery
subject.batchLoaded(self)
File "U:\pywikipedia 4\interwiki.py", line 1328, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "U:\pywikipedia 4\interwiki.py", line 1092, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "U:\pywikipedia 4\wikipedia.py", line 1529, in isDisambig
for link in disambigpages.linkedPages()
File "U:\pywikipedia 4\wikipedia.py", line 2720, in linkedPages
if self.namespace() in self.site().namespacesWithSubpage:
AttributeError: 'Site' object has no attribute 'namespacesWithSubpage'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 09:14
Message:
is going wrong with "/../" and collections must be imported
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 05:53
Message:
Thank you very much. However, r10987 can't deal with the link [[../../]]. I
have uploaded a new version that can handle this case. Please reply to me
if you have any doubt.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-27 09:40
Message:
yes. Fixed in r11010.
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 09:38
Message:
Well, it should be self.site.family.namespacesWithSubpage rather than
self.site.namespacesWithSubpage.
----------------------------------------------------------------------
Comment By: GanZ (ganz-ru)
Date: 2013-01-27 09:28
Message:
After this patch I get an error on any interwiki.py task:
Traceback (most recent call last):
File "U:\pywikipedia 4\interwiki.py", line 2589, in <module>
main()
File "U:\pywikipedia 4\interwiki.py", line 2563, in main
bot.run()
File "U:\pywikipedia 4\interwiki.py", line 2296, in run
self.queryStep()
File "U:\pywikipedia 4\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "U:\pywikipedia 4\interwiki.py", line 2265, in oneQuery
subject.batchLoaded(self)
File "U:\pywikipedia 4\interwiki.py", line 1328, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "U:\pywikipedia 4\interwiki.py", line 1092, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "U:\pywikipedia 4\wikipedia.py", line 1529, in isDisambig
for link in disambigpages.linkedPages()
File "U:\pywikipedia 4\wikipedia.py", line 2720, in linkedPages
if self.namespace() in self.site().namespacesWithSubpage:
AttributeError: 'Site' object has no attribute 'namespacesWithSubpage'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 09:14
Message:
is going wrong with "/../" and collections must be imported
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 05:53
Message:
Thank you very much. However, r10987 can't deal with the link [[../../]]. I
have uploaded a new version that can handle this case. Please reply to me
if you have any doubt.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 09:38
Message:
Well, it should be self.site.family.namespacesWithSubpage rather than
self.site.namespacesWithSubpage.
----------------------------------------------------------------------
Comment By: GanZ (ganz-ru)
Date: 2013-01-27 09:28
Message:
After this patch I get an error on any interwiki.py task:
Traceback (most recent call last):
File "U:\pywikipedia 4\interwiki.py", line 2589, in <module>
main()
File "U:\pywikipedia 4\interwiki.py", line 2563, in main
bot.run()
File "U:\pywikipedia 4\interwiki.py", line 2296, in run
self.queryStep()
File "U:\pywikipedia 4\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "U:\pywikipedia 4\interwiki.py", line 2265, in oneQuery
subject.batchLoaded(self)
File "U:\pywikipedia 4\interwiki.py", line 1328, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "U:\pywikipedia 4\interwiki.py", line 1092, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "U:\pywikipedia 4\wikipedia.py", line 1529, in isDisambig
for link in disambigpages.linkedPages()
File "U:\pywikipedia 4\wikipedia.py", line 2720, in linkedPages
if self.namespace() in self.site().namespacesWithSubpage:
AttributeError: 'Site' object has no attribute 'namespacesWithSubpage'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 09:14
Message:
is going wrong with "/../" and collections must be imported
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 05:53
Message:
Thank you very much. However, r10987 can't deal with the link [[../../]]. I
have uploaded a new version that can handle this case. Please reply to me
if you have any doubt.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by ganz-ru
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
Comment By: GanZ (ganz-ru)
Date: 2013-01-27 09:28
Message:
After this patch I get an error on any interwiki.py task:
Traceback (most recent call last):
File "U:\pywikipedia 4\interwiki.py", line 2589, in <module>
main()
File "U:\pywikipedia 4\interwiki.py", line 2563, in main
bot.run()
File "U:\pywikipedia 4\interwiki.py", line 2296, in run
self.queryStep()
File "U:\pywikipedia 4\interwiki.py", line 2269, in queryStep
self.oneQuery()
File "U:\pywikipedia 4\interwiki.py", line 2265, in oneQuery
subject.batchLoaded(self)
File "U:\pywikipedia 4\interwiki.py", line 1328, in batchLoaded
(skip, alternativePage) = self.disambigMismatch(page, counter)
File "U:\pywikipedia 4\interwiki.py", line 1092, in disambigMismatch
if self.originPage.isDisambig() and not page.isDisambig():
File "U:\pywikipedia 4\wikipedia.py", line 1529, in isDisambig
for link in disambigpages.linkedPages()
File "U:\pywikipedia 4\wikipedia.py", line 2720, in linkedPages
if self.namespace() in self.site().namespacesWithSubpage:
AttributeError: 'Site' object has no attribute 'namespacesWithSubpage'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 09:14
Message:
is going wrong with "/../" and collections must be imported
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 05:53
Message:
Thank you very much. However, r10987 can't deal with the link [[../../]]. I
have uploaded a new version that can handle this case. Please reply to me
if you have any doubt.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-01-27 09:14
Message:
is going wrong with "/../" and collections must be imported
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 05:53
Message:
Thank you very much. However, r10987 can't deal with the link [[../../]]. I
have uploaded a new version that can handle this case. Please reply to me
if you have any doubt.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…
Patches item #3602219, was opened at 2013-01-26 09:33
Message generated for change (Comment added) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&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: Fixed
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: xqt (xqt)
Summary: Convert relative links to absolute links in linkedPages().
Initial Comment:
Convert relative links to absolute links in linkedPages().
----------------------------------------------------------------------
>Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-27 05:53
Message:
Thank you very much. However, r10987 can't deal with the link [[../../]]. I
have uploaded a new version that can handle this case. Please reply to me
if you have any doubt.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 02:48
Message:
I've done a patch in r10987. Please have a look at this. The right list for
some mw projects will come soon.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-27 01:42
Message:
What is with the article namespace on other projects than "wikipedia"? What
about several other namespaces? At the moment not all wikipedia sister
projects have subpages on project: and help: namespaces
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0)
Date: 2013-01-26 14:58
Message:
I should have explained the patch clearer. Sorry.
Relative link is disabled on main namespace of Wikipedia because subpage
feature is disabled there (See
http://en.wikipedia.org/wiki/Wikipedia:Subpages). For example, on main
namespace of Wikipedia, if you write [[/b]] on page "a", it will produce a
link to page "/b". However, if you do the same thing on another namespace
or another family, it will produce a link to [[a/b]]. I just write the code
to simulate this behavior as much as possible.
For os.path problem, I will fix it soon. Thank you for noticing this
problem much. :-)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-01-26 11:56
Message:
In general a good idea but could you please explain that patch? What is the
reason to do that fix outside the wikipedia article namespace only? {the
condition is equal to: not (self.site.family.name == "wikipedia" and
self.namespace() == 0)}
And btw os.path methods does not work for mediawiki "directories" especial
with windows os.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3602219&group_…