Bugs item #2986353, was opened at 2010-04-13 10:29
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986353&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: interwiki
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: disambig template for sc.wiki
Initial Comment:
Please add
'sc': [u'Disambigua'],
to disambig templates section in wikipedia_family.py
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-04-13 13:18
Message:
done in pyrev:8087
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986353&group_…
Bugs item #2985621, was opened at 2010-04-12 00:54
Message generated for change (Comment added) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2985621&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: masti (masti01)
Assigned to: xqt (xqt)
Summary: weblinkchecker.py - stripping ")"
Initial Comment:
weblinkchecker i stripping trailing ) in links creating false dead links
example: http://pl.wikipedia.org/w/index.php?title=Dyskusja%3AJean-Luc_Picard&action…
python version.py
Pywikipedia [http] trunk/pywikipedia (r8074, 2010/04/10, 23:12:44)
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45)
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)]
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-04-13 11:58
Message:
here is the deleted part
http://pywiki.pastey.net/135211
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-12 10:13
Message:
You have deleted the sample and I am not a sysop on pl-wiki. Could you give
me that hint please.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2985621&group_…
Bugs item #2986353, was opened at 2010-04-13 08:29
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986353&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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: disambig template for sc.wiki
Initial Comment:
Please add
'sc': [u'Disambigua'],
to disambig templates section in wikipedia_family.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986353&group_…
Bugs item #2985959, was opened at 2010-04-12 16:57
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2985959&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: General
Group: None
>Status: Pending
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: shizhao (wikishizhao)
>Assigned to: xqt (xqt)
Summary: IsRedirectPage error
Initial Comment:
if nontalkpage.isEmpty():
File "/home/shizhao2/talk/wikipedia.py", line 1025, in isEmpty
txt = self.get()
File "/home/shizhao2/talk/wikipedia.py", line 609, in get
raise IsRedirectPage, self._redirarg
pywikibot.exceptions.IsRedirectPage: Template:Canon DSLR cameras
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-04-13 09:03
Message:
isEmpty() can raise the same exceptions as get()
As I have no further information which script you are running on which
site (and I guess Template:Canon DSLR cameras is a redirect), I couldn't
help yet.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2985959&group_…
Bugs item #2986051, was opened at 2010-04-12 20:33
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986051&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: Rejected
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: weblinkchecker should ignore URLs inside some tags, part 2
Initial Comment:
This is a followup to [pywikipediabot-Bugs-1969051] \"weblinkchecker should ignore URLs inside some tags\"
The fix in pyrev:8076 by xqt is appreciated, but not an appropriate solution. The particular tag I listed in the ticket, \"<sql>\", was just an example. The fix by xqt simply hard-coded this example (bogus) tag into the Pywikipedia source code:
svn diff -c8076 http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia
A better fix would be to recognize when you are reading a tag attribute:
<AnyTagGoesHere ... attr=\'http://whatever\' ...>
{{AnyTemplateOrParserFunction | attr=http://whatever
and ignore the URL in these situations.
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r8050, 2010/04/01, 15:43:14)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-04-13 08:28
Message:
The <sql> tag is a non-standard tag, but is used by on the other bug
reporters' wiki (as was clearly stated in his/hers bug report)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-13 08:13
Message:
3rd done in pyrev:8086
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2010-04-12 21:39
Message:
I see your point. Three notes:
1. Can this be an OPTION for weblinkchecker?
2. If not, can you at least strip off the trailing single quotes (shown in
bug 1969051) so you don't get broken URLs? Since single quotes are valid
in tags but should not be part of the URL.
3. In any case, you should revert pyrev:8076 because there is no such tag
as <sql>.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-12 21:26
Message:
I do not agree. Since it is legal putting URLs into <ref /> tags as well as
others like <noinclude> etc. or assigning URLs to a template field, this
normally shouldn't be ignored by the weblinkchecker but checked if this URL
is still valid.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-04-12 21:23
Message:
I disagree. It is very well possible to have a sensible URL in a template
(e.g. a reference). I'd suggest to only add 'exceptions', as has been done
in r8076.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986051&group_…
Bugs item #2986051, was opened at 2010-04-12 20:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986051&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: Rejected
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: weblinkchecker should ignore URLs inside some tags, part 2
Initial Comment:
This is a followup to [pywikipediabot-Bugs-1969051] \"weblinkchecker should ignore URLs inside some tags\"
The fix in pyrev:8076 by xqt is appreciated, but not an appropriate solution. The particular tag I listed in the ticket, \"<sql>\", was just an example. The fix by xqt simply hard-coded this example (bogus) tag into the Pywikipedia source code:
svn diff -c8076 http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia
A better fix would be to recognize when you are reading a tag attribute:
<AnyTagGoesHere ... attr=\'http://whatever\' ...>
{{AnyTemplateOrParserFunction | attr=http://whatever
and ignore the URL in these situations.
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r8050, 2010/04/01, 15:43:14)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-04-13 08:13
Message:
3rd done in pyrev:8086
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2010-04-12 21:39
Message:
I see your point. Three notes:
1. Can this be an OPTION for weblinkchecker?
2. If not, can you at least strip off the trailing single quotes (shown in
bug 1969051) so you don't get broken URLs? Since single quotes are valid
in tags but should not be part of the URL.
3. In any case, you should revert pyrev:8076 because there is no such tag
as <sql>.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-12 21:26
Message:
I do not agree. Since it is legal putting URLs into <ref /> tags as well as
others like <noinclude> etc. or assigning URLs to a template field, this
normally shouldn't be ignored by the weblinkchecker but checked if this URL
is still valid.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-04-12 21:23
Message:
I disagree. It is very well possible to have a sensible URL in a template
(e.g. a reference). I'd suggest to only add 'exceptions', as has been done
in r8076.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986051&group_…
Bugs item #1969051, was opened at 2008-05-21 21:13
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1969051&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: Invalid
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: weblinkchecker should ignore URLs inside some tags
Initial Comment:
Our MediaWiki site has a tag that runs database queries:
<sql>select foo from bar</sql>
Unfortunately, when the query includes a URL:
<sql>select 'http://blah' from bar</sql>
weblinkchecker.py thinks this is a real URL and reports:
http://blah' - Socket Error: 'getaddrinfo failed'
(Notice the single quote on the end of the URL.)
This problem should be preventable somehow: get pywikipedia to ignore strings that look like URLs when enclosed within certain parser tags.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-04-13 08:11
Message:
revert to pyrev:8022 as requested at tracker 2986051
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-12 13:49
Message:
done in pyrev:8076
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1969051&group_…
Bugs item #2986247, was opened at 2010-04-13 10:51
Message generated for change (Settings changed) made by wikishizhao
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986247&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: General
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: shizhao (wikishizhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: followlive.py error
Initial Comment:
run python followlive.py:
prepending {{subst:Cleanup/auto}}...
Probably added {{subst:Cleanup/auto}}
Traceback (most recent call last):
File "followlive.py", line 506, in ?
bot.run()
File "followlive.py", line 488, in run
handler.run()
File "followlive.py", line 473, in run
self.handlebadpage()
File "followlive.py", line 464, in handlebadpage
wikipedia.output(newcontent)
NameError: global name 'newcontent' is not defined
----------------------------------------------------------------------
>Comment By: shizhao (wikishizhao)
Date: 2010-04-13 11:02
Message:
rev 8076
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986247&group_…
Bugs item #2986247, was opened at 2010-04-13 10:51
Message generated for change (Tracker Item Submitted) made by wikishizhao
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986247&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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: shizhao (wikishizhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: followlive.py error
Initial Comment:
run python followlive.py:
prepending {{subst:Cleanup/auto}}...
Probably added {{subst:Cleanup/auto}}
Traceback (most recent call last):
File "followlive.py", line 506, in ?
bot.run()
File "followlive.py", line 488, in run
handler.run()
File "followlive.py", line 473, in run
self.handlebadpage()
File "followlive.py", line 464, in handlebadpage
wikipedia.output(newcontent)
NameError: global name 'newcontent' is not defined
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986247&group_…
Bugs item #2986051, was opened at 2010-04-12 14:33
Message generated for change (Settings changed) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986051&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: Rejected
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: weblinkchecker should ignore URLs inside some tags, part 2
Initial Comment:
This is a followup to [pywikipediabot-Bugs-1969051] \"weblinkchecker should ignore URLs inside some tags\"
The fix in pyrev:8076 by xqt is appreciated, but not an appropriate solution. The particular tag I listed in the ticket, \"<sql>\", was just an example. The fix by xqt simply hard-coded this example (bogus) tag into the Pywikipedia source code:
svn diff -c8076 http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia
A better fix would be to recognize when you are reading a tag attribute:
<AnyTagGoesHere ... attr=\'http://whatever\' ...>
{{AnyTemplateOrParserFunction | attr=http://whatever
and ignore the URL in these situations.
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r8050, 2010/04/01, 15:43:14)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
----------------------------------------------------------------------
>Comment By: Daniel Barrett (djbarrett)
Date: 2010-04-12 15:39
Message:
I see your point. Three notes:
1. Can this be an OPTION for weblinkchecker?
2. If not, can you at least strip off the trailing single quotes (shown in
bug 1969051) so you don't get broken URLs? Since single quotes are valid
in tags but should not be part of the URL.
3. In any case, you should revert pyrev:8076 because there is no such tag
as <sql>.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-12 15:26
Message:
I do not agree. Since it is legal putting URLs into <ref /> tags as well as
others like <noinclude> etc. or assigning URLs to a template field, this
normally shouldn't be ignored by the weblinkchecker but checked if this URL
is still valid.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-04-12 15:23
Message:
I disagree. It is very well possible to have a sensible URL in a template
(e.g. a reference). I'd suggest to only add 'exceptions', as has been done
in r8076.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2986051&group_…