Patches item #3511436, was opened at 2012-03-26 07:00
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3511436&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: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: update noreferences.py for zh
Initial Comment:
update noreferences.py for zh.wikipedia
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-26 13:43
Message:
22:42 < CIA-48> pywikipedia: valhallasw * 10049
http://toolserver.org/~pywikipedia/r10049
/trunk/pywikipedia/noreferences.py:
22:42 < CIA-48> Update noreferences.py for zh.wikipedia
22:42 < CIA-48> Patch by YFdyh000 <yfdyh000(a)users.sourceforge.net>
22:42 < CIA-48> Reference: pywikipedia-Patches-3511436
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3511436&group_…
Patches item #3511436, was opened at 2012-03-26 07:00
Message generated for change (Tracker Item Submitted) made by yfdyh000
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3511436&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: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: update noreferences.py for zh
Initial Comment:
update noreferences.py for zh.wikipedia
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3511436&group_…
Bugs item #3160376, was opened at 2011-01-17 16:08
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3160376&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: network
Group: None
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Non-ascii cookies not supported
Initial Comment:
Not fully clear whether this is a pwb or a python bug.
Reported by: Creeper == http://callofduty.wikia.com/wiki/User:Ikin
Wiki: callofduty.wikia.com, autogenerated family file
Location: Somewhere where wikia puts an å in the cookie.
Initial output:
C:\pywikipedia>redirect.py double
unicode test: triggers problem #3081100
Retrieving special page...
'ascii' codec can't decode byte 0xe5 in position 282: ordinal not in range(128)
WARNING: Could not open 'http://callofduty.wikia.com/api.php?action=query&format
=json&meta=userinfo&uiprop=blockinfo'. Maybe the server or
your connection is down. Retrying in 1 minutes...
After removing two catch-alls:
00:10 < valhalla1w> open wikipedia.py, search for output(u'%s' %e)
00:10 < valhalla1w> change that to 'raise'
00:11 < valhalla1w> replace output(...) with raise
00:11 < valhalla1w> then search again and replace again
00:12 < valhalla1w> (there are two hits)
and
00:41 < valhalla1w> open query.py, search for Error downloading data
00:41 < valhalla1w> change that line to 'raise', too, and try again
and some pdb magic:
C:\pywikipedia> c:\python26\python -m pdb redirect.py double
> c:\pywikipedia\redirect.py(53)<module>()
-> """
(Pdb) c
unicode test: triggers problem #3081100
Retrieving special page...
Traceback (most recent call last):
File "c:\python26\lib\pdb.py", line 1296, in main
pdb._runscript(mainpyfile)
File "c:\python26\lib\pdb.py", line 1215, in _runscript
self.run(statement)
File "c:\python26\lib\bdb.py", line 372, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "redirect.py", line 911, in <module>
main()
File "redirect.py", line 907, in main
bot.run()
File "redirect.py", line 823, in run
self.fix_double_redirects()
File "redirect.py", line 650, in fix_double_redirects
for redir_name in self.generator.retrieve_double_redirects():
File "redirect.py", line 463, in retrieve_double_redirects
maintenance_txt = self.site.getUrl(path)
File "wikipedia.py", line 5469, in getUrl
self._getUserDataOld(text, sysop = sysop)
File "wikipedia.py", line 5597, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File "wikipedia.py", line 4910, in _getBlock
data = query.GetData(params, self)
File "query.py", line 127, in GetData
jsontext = site.getUrl( path, retry=True, sysop=sysop, data=data)
File "wikipedia.py", line 5365, in getUrl
f = MyURLopener.open(request)
File "c:\python26\lib\urllib2.py", line 391, in open
response = self._open(req, data)
File "c:\python26\lib\urllib2.py", line 409, in _open
'_open', req)
File "c:\python26\lib\urllib2.py", line 369, in _call_chain
result = func(*args)
File "c:\python26\lib\urllib2.py", line 1170, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "c:\python26\lib\urllib2.py", line 1142, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "c:\python26\lib\httplib.py", line 914, in request
self._send_request(method, url, body, headers)
File "c:\python26\lib\httplib.py", line 951, in _send_request
self.endheaders()
File "c:\python26\lib\httplib.py", line 908, in endheaders
self._send_output()
File "c:\python26\lib\httplib.py", line 778, in _send_output
msg = "\r\n".join(self._buffer)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 291: ordina
l not in range(128)
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> c:\python26\lib\httplib.py(778)_send_output()
-> msg = "\r\n".join(self._buffer)
(Pdb)
(Pdb) self._buffer
[u'GET /api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo HTTP/1.1
', u'Host: callofduty.wikia.com', 'User-Agent: PythonWikipediaBot/1.0', 'Cookie:
cookieprefix=None; wikicitiesUserName=xxxt; loadtime=S1295308051.857639313,VS0
,AS69,MD14,DD102,AE538,VE753; wikicitiesToken=7xxxxxxx;
wikicities_session=xxxxx; varnish-stat=/server/LON/va
rnish-l8-LON/SESSION/; Geo = {"city":"Kabelv\xe5g","country":"NO","continent":"E
U"}; wikicitiesUserID=3116284; ', 'Connection: close', 'Accept-Encoding: gzip',
'', '']
Testing this directly confirms the problem:
>>> buffer = [u'GET /api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo HTTP/1.1', u'Host: callofduty.wikia.com', 'User-Agent: PythonWikipediaBot/1.0', 'Cookie: cookieprefix=None; wikicitiesUserName=xxxx; loadtime=S1295308051.857639313,VS0,AS69,MD14,DD102,AE538,VE753; wikicitiesToken=xxxx;wikicities_session=xxx; varnish-stat=/server/LON/varnish-l8-LON/SESSION/; Geo = {"city":"Kabelv\xe5g","country":"NO","continent":"EU"}; wikicitiesUserID=xxx; ', 'Connection: close', 'Accept-Encoding: gzip','', '']
>>> "\r\n".join(buffer)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 290: ordinal not in range(128)
As a temporary solution, I suggested editing c:\python26\lib\httplib.py and replacing line
msg = "\r\n".join(self._buffer)
with
"\r\n".join([x.encode('utf-8') if isinstance(x, unicode) else x for x in self._buffer])
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-03-24 10:43
Message:
5PAM5y <a href="http://ojpxkixdserx.com/">ojpxkixdserx</a>,
[url=http://rjxyvafeernp.com/]rjxyvafeernp[/url],
[link=http://jbfukiptqcvk.com/]jbfukiptqcvk[/link],
http://tfnmhhojnlev.com/
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-01-17 16:09
Message:
Correction: I submitted this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3160376&group_…
Bugs item #3510220, was opened at 2012-03-22 14:21
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3510220&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add "Bom interwiki" to cosmetic changes
Initial Comment:
Please add u"Bom interwiki" to starsList in cosmetic_changes.py, the template is the equivalent of "Link GA", to avoid this: http://pt.wikipedia.org/w/index.php?title=Fran%C3%A7a&diff=prev&oldid=29403… (Local Link GA moved to above the cats.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-22 14:50
Message:
Fixed in pywikipediabot-Patches-3510230.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3510220&group_…
Patches item #3510230, was opened at 2012-03-22 14:46
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3510230&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: alchimista ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Add "Bom interwiki" to cosmetic changes
Initial Comment:
Please add u"Bom interwiki" to starsList in cosmetic_changes.py, the template is the equivalent of "Link GA", to avoid this: http://pt.wikipedia.org/w/index.php?title=Fran%C3%A7a&diff=prev&oldid=29403… (Local Link GA moved to above the cats.)
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-22 14:49
Message:
22:49 < CIA-48> pywikipedia: valhallasw * 10038
http://toolserver.org/~pywikipedia/r10038
/trunk/pywikipedia/cosmetic_changes.py:
22:49 < CIA-48> Added u"Bom interwiki" to starsList.
22:49 < CIA-48> Patch by alchimista <alchimista(a)users.sourceforge.net>
22:49 < CIA-48> Reference: pywikipediabot-Patches-3510230
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3510230&group_…
Patches item #3510230, was opened at 2012-03-22 14:46
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3510230&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: alchimista ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Add "Bom interwiki" to cosmetic changes
Initial Comment:
Please add u"Bom interwiki" to starsList in cosmetic_changes.py, the template is the equivalent of "Link GA", to avoid this: http://pt.wikipedia.org/w/index.php?title=Fran%C3%A7a&diff=prev&oldid=29403… (Local Link GA moved to above the cats.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3510230&group_…
Patches item #3502676, was opened at 2012-03-12 07:40
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3502676&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: Lars Aronsson (aronsson)
Assigned to: Nobody/Anonymous (nobody)
Summary: New option "-no" to djvutext.py
Initial Comment:
djvutext.py adds OCR text to books in Wikisource. Some books already have text for some pages, but not for others. The "-no" flag added by this patch only adds new pages, but doesn't alter the text for any existing pages. (At any such question, it answers "no" automatically.)
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-22 14:22
Message:
Lars, could you take a look at xqt's comments? See
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10036#c32460 .
Thanks.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 14:31
Message:
Committed in r10036 [ http://toolserver.org/~pywikipedia/r10036 ]. Thanks!
----------------------------------------------------------------------
Comment By: Lars Aronsson (aronsson)
Date: 2012-03-21 13:11
Message:
A better patch (patch-djvutext-overwrite.py) has been uploaded now.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 11:07
Message:
Last housekeeper's note: this patch applies cleanly to r10035 (duh. it's
the same djvutext.py)
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 10:44
Message:
For reference: I had a discussion on this patch with Lars on IRC and
mentioned some improvements (naming/parameter). He's working on a new patch
version.
Again, thanks for the effort, Lars! :-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3502676&group_…
Bugs item #3510220, was opened at 2012-03-22 14: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=3510220&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: Add "Bom interwiki" to cosmetic changes
Initial Comment:
Please add u"Bom interwiki" to starsList in cosmetic_changes.py, the template is the equivalent of "Link GA", to avoid this: http://pt.wikipedia.org/w/index.php?title=Fran%C3%A7a&diff=prev&oldid=29403… (Local Link GA moved to above the cats.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3510220&group_…
Patches item #3509885, was opened at 2012-03-21 15:32
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3509885&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: Lars Aronsson (aronsson)
Assigned to: Nobody/Anonymous (nobody)
Summary: djvutext.py fails to retrieve namespace names (Index, Page)
Initial Comment:
To get the names of the namespaces (Index and Page), the source code of djvutext.py uses two different methods, both wrong.
This fails on sv.wikisource and ru.wikisource, making djvutext.py useless.
At line 230, the index namespace is retrieved with Page(...).get() which fails if the page in MediaWiki: namespace doesn't exist.
At line 123, the page namespace is retrieved with [104], assuming the namespace has this number, which it doesn't always have.
The solution is to use site.mediawiki_message(...) instead, as this patch does.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-03-21 15:56
Message:
Committed in r10037 [ http://toolserver.org/~pywikipedia/r10037 ].
----------------------------------------------------------------------
Comment By: John Vandenberg (zeroj)
Date: 2012-03-21 15:50
Message:
maybe the reason this fails now on fr.ws is that recently the page has been
deleted
https://fr.wikisource.org/wiki/MediaWiki:Proofreadpage_index_namespace
the patch looks good. ill apply it tonight
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3509885&group_…
Patches item #3509885, was opened at 2012-03-21 15:32
Message generated for change (Comment added) made by zeroj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3509885&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: Lars Aronsson (aronsson)
Assigned to: Nobody/Anonymous (nobody)
Summary: djvutext.py fails to retrieve namespace names (Index, Page)
Initial Comment:
To get the names of the namespaces (Index and Page), the source code of djvutext.py uses two different methods, both wrong.
This fails on sv.wikisource and ru.wikisource, making djvutext.py useless.
At line 230, the index namespace is retrieved with Page(...).get() which fails if the page in MediaWiki: namespace doesn't exist.
At line 123, the page namespace is retrieved with [104], assuming the namespace has this number, which it doesn't always have.
The solution is to use site.mediawiki_message(...) instead, as this patch does.
----------------------------------------------------------------------
Comment By: John Vandenberg (zeroj)
Date: 2012-03-21 15:50
Message:
maybe the reason this fails now on fr.ws is that recently the page has been
deleted
https://fr.wikisource.org/wiki/MediaWiki:Proofreadpage_index_namespace
the patch looks good. ill apply it tonight
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3509885&group_…