Bugs item #2972249, was opened at 2010-03-17 22:49
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972249&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: Nobody/Anonymous (nobody)
Summary: weblinkchecker.py - anoying exceptions
Initial Comment:
While processing external links weblinkchecker often trows this exception:
Exception while processing URL http://www.cev.lu/mmp-cgi/show.pl?cmd=tmpl&id=851&id2=150&id3=359&id4=4&id5… in page Mistrzostwa Europy w Piłce Siatkowej Mężczyzn 1997
Exception in thread Mistrzostwa Europy w Piłce Siatkowej Mężczyzn 1997 - http://www.cev.lu/mmp-cgi/show.pl?cmd=tmpl&id=851&id2=150&id3=359&id4=4&id5…:
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 525, in __bootstrap_inner
self.run()
File "weblinkchecker.py", line 492, in run
ok, message = linkChecker.check()
File "weblinkchecker.py", line 423, in check
msg = error[1]
IndexError: tuple index out of range
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972249&group_…
Bugs item #2970428, was opened at 2010-03-15 00:21
Message generated for change (Comment added) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970428&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: Nobody/Anonymous (nobody)
Summary: weblinkchecker.py - not striping | following link
Initial Comment:
weblinkchecker.py does not properly stripe trailling pipe "|" character after http links. This can happen when a link in within an inline template as one of the parameters the result is false positive dead link like below
*[[Jean-Claude Nallet]] links to http://www.gbrathletics.com/ic/epm.htm| - 404 Not Found.
the link is within Cite page template:
<ref>{{Cytuj stronę| url =http://www.gbrathletics.com/nc/fra.htm| tytuł = GBRAthletics: French Championships| data dostępu = 26 grudnia 2009| autor = | język = en}}</ref>
----------------------------------------------------------------------
>Comment By: masti (masti01)
Date: 2010-03-17 20:19
Message:
in r7940 the compileLinkR was moved from weblinkchecker to wikipedia
library. But compileLinkR does not exist in wikipedia.py. So why line 222
in weblinkchecker does not crash? And where is this function?
the solution would be to add \| to notAtEnd = '\]\s\)\.:;,<>"' parameter
in compileLinkR
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970428&group_…
Bugs item #2970545, was opened at 2010-03-15 10:46
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970545&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: Postponed
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: xqt (xqt)
Summary: wikipedia.py - oneDoneAPI further errors
Initial Comment:
it looks that there are some more erros in thin function. After fixing problems with editRestriction variables in # 2970417 other variables generate simmilar error:
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 879, in __iter__
for loaded_page in self.preload(somePages):
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 904, in preload
pywikibot.getall(site, pagesThisSite)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 4036, in getall
_GetAll(site, k, throttle, force).run()
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3689, in run
self.oneDoneApi(vals)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3911, in oneDoneApi
page2._permalink = revisionId
UnboundLocalError: local variable 'revisionId' referenced before assignment
local variable 'revisionId' referenced before assignment
when I fixed that other appear:
Traceback (most recent call last):
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 879, in __iter__
for loaded_page in self.preload(somePages):
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 904, in preload
pywikibot.getall(site, pagesThisSite)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 4037, in getall
_GetAll(site, k, throttle, force).run()
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3689, in run
self.oneDoneApi(vals)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3913, in oneDoneApi
page2._userName = username
UnboundLocalError: local variable 'username' referenced before assignment
local variable 'username' referenced before assignment
I think all of this is generate due to the fact that when an exceptio occurs there is no action and the procedure contiunues without variables beein set. So the real problem is in line 3887:
except KeyError:
pass
I think instead of pass the procedure should return.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-17 18:40
Message:
I reverted r8011 reading pages on bulk via api for now until I found the
reason why there is no revison found for a page.
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-15 20:49
Message:
I've submitted a patch for that #2970823
star line for pl.wikipedia is:
python weblinkchecker.py -talk -namespace:0 -start:"Lista obserwatoriów
astronomicznych"
it crashed on this article.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-15 19:49
Message:
you're right. Could you give me the command line you have used? I would
like to examine the reason why this exception occurs. thx.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970545&group_…
Patches item #2970823, was opened at 2010-03-15 20:46
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2970823&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: Postponed
Priority: 5
Private: No
Submitted By: masti (masti01)
>Assigned to: xqt (xqt)
Summary: patch for #2970545
Initial Comment:
changed pass to return
seems to be working :)
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-17 18:38
Message:
I reverted r8011 reading pages on bulk via api for now until I found the
reason why there is no revison found for a page.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2970823&group_…
Patches item #2971318, was opened at 2010-03-16 16:10
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2971318&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: masti (masti01)
Assigned to: xqt (xqt)
Summary: interwiki.py new fr template for doc subpages
Initial Comment:
fr.wiki has another template for pages with doc pages {{Doc_modèle}}. patch attached.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-17 18:33
Message:
ok, patch accepted in r8020. Thanks.
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-16 17:53
Message:
I mean {{documentation}} not dokumanttation :)
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-16 17:52
Message:
xqt: we definetly need to add u'documantation' which is used next to
u'/documentation', for example here:
http://fr.wikipedia.org/wiki/Mod%C3%A8le:Palette_Syst%C3%A8me_solaire
and {{doc modèle}} which is used for example here:
http://fr.wikipedia.org/wiki/Mod%C3%A8le:Utilisateur_Identifiant_unique
I will later investigate other ones.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-16 17:22
Message:
Masti, I guess this does not work. I found that these templates are on the
given subpage /documentation itself and not found on the template. In this
case I check against this subpage whether this is given or not (see r7765)
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/interwiki.py?…
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-16 16:29
Message:
more templates added:
u'doc_modèle', u'documentation modèle', u'documentation modèle
compliqué', u'documentation modèle en sous-page', u'documentation modèle
compliqué en sous-page', u'documentation modèle utilisant les
parserfunctions en sous-page'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2971318&group_…
Feature Requests item #2971566, was opened at 2010-03-16 22:30
Message generated for change (Comment added) made by jandudik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2971566&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
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: Better message
Initial Comment:
Whe bot removes all interwiki links, there should be better summary, something like:
Bot: removes [[en:foo]] (all iw)
or
Bot removes all interwiki
----------------------------------------------------------------------
>Comment By: JAn (jandudik)
Date: 2010-03-17 15:39
Message:
e.g. in article is only one interwiki link, which is incorrect. when there
is only log: Bot removed [[en:foo]] users don't recognize there is no other
iw. when there is log: bot removes all interwiki, users know, there is
something bad.
This is idea from user:Miraceti.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-17 13:03
Message:
What is the reason for that? Could you give me a hint?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2971566&group_…
Feature Requests item #2971566, was opened at 2010-03-16 22:30
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2971566&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
Priority: 5
Private: No
Submitted By: JAn (jandudik)
>Assigned to: xqt (xqt)
Summary: Better message
Initial Comment:
Whe bot removes all interwiki links, there should be better summary, something like:
Bot: removes [[en:foo]] (all iw)
or
Bot removes all interwiki
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-17 13:03
Message:
What is the reason for that? Could you give me a hint?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2971566&group_…
Bugs item #2971600, was opened at 2010-03-16 22:21
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2971600&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: sectionencode incorrectly encoding
Initial Comment:
>>> wikipedia.sectionencode(':/', 'utf-8')
'.3A/'
Which is incorrect as it is ":.2F"
The correct code for sectionencode() should be:
return urllib.quote(text.replace(" ","_").encode(encoding), safe=':').replace("%",".")
Also, it would be nice if encoding defaulted here to 'utf-8'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2971600&group_…
Feature Requests item #2971566, was opened at 2010-03-16 22:30
Message generated for change (Tracker Item Submitted) made by jandudik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2971566&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
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Better message
Initial Comment:
Whe bot removes all interwiki links, there should be better summary, something like:
Bot: removes [[en:foo]] (all iw)
or
Bot removes all interwiki
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2971566&group_…
Patches item #2971318, was opened at 2010-03-16 16:10
Message generated for change (Comment added) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2971318&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: Pending
Resolution: Rejected
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: xqt (xqt)
Summary: interwiki.py new fr template for doc subpages
Initial Comment:
fr.wiki has another template for pages with doc pages {{Doc_modèle}}. patch attached.
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-16 17:53
Message:
I mean {{documentation}} not dokumanttation :)
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-16 17:52
Message:
xqt: we definetly need to add u'documantation' which is used next to
u'/documentation', for example here:
http://fr.wikipedia.org/wiki/Mod%C3%A8le:Palette_Syst%C3%A8me_solaire
and {{doc modèle}} which is used for example here:
http://fr.wikipedia.org/wiki/Mod%C3%A8le:Utilisateur_Identifiant_unique
I will later investigate other ones.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-16 17:22
Message:
Masti, I guess this does not work. I found that these templates are on the
given subpage /documentation itself and not found on the template. In this
case I check against this subpage whether this is given or not (see r7765)
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/interwiki.py?…
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-16 16:29
Message:
more templates added:
u'doc_modèle', u'documentation modèle', u'documentation modèle
compliqué', u'documentation modèle en sous-page', u'documentation modèle
compliqué en sous-page', u'documentation modèle utilisant les
parserfunctions en sous-page'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2971318&group_…