https://bugzilla.wikimedia.org/show_bug.cgi?id=55320
Web browser: ---
Bug ID: 55320
Summary: fixing_redirects.py encodes section-link
hexadecimally.
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/743/
Reported by: nightshadow28
Created on: 2008-06-11 10:22:29
Subject: fixing_redirects.py encodes section-link hexadecimally.
Original description:
fixing\_redirects.py encodes section-link hexadecimally.
When fixing\_redirects.py fixes in-line links, the bot will replace section
name hexadecimally.
For example,
http://ja.wikipedia.org/w/index.php?title=%E7%94%9F%E7%89%A9%E5%AD%A6&diff=…
original link: \[\[目的論\]\]
redirect: \[\[目的\#目的論\]\]
result of the bot: \[\[目的\#.E7.9B.AE.E7.9A.84.E8.AB.96|目的論\]\]
The result is difficult to maintenance by human...
Pywikipedia \[http\] trunk/pywikipedia \(r5554, Jun 10 2008, 15:47:56\)
Python 2.5.2 \(r252:60911, Apr 21 2008, 11:12:42\)
\[GCC 4.2.3 \(Ubuntu 4.2.3-2ubuntu7\)\]
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64870
Bug ID: 64870
Summary: Port inline_images.py to core
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Blocks: 55880
Web browser: ---
Mobile Platform: ---
Possibily move it out of pywikibot as it's fairly special-purpose.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=59952
Web browser: ---
Bug ID: 59952
Summary: fixing_redirects.py does not work with : and #
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
When fixing redirects, bot does not fix links beginning with [[:langcode:link]]
*https://cs.wikiversity.org/w/index.php?title=U%C5%BEivatel:Kychot&curid=698&diff=43895&oldid=39956
Additionally, does not fix links with # [[link#foo]]
*https://cs.wikiversity.org/w/index.php?title=Dublin_Core/cvi%C4%8Den%C3%AD/DCdot&curid=4986&diff=43892&oldid=40427
*https://cs.wikiversity.org/w/index.php?title=Dublin_Core/cvi%C4%8Den%C3%AD/webarchiv_generator&curid=4984&diff=43891&oldid=20284
*https://cs.wikiversity.org/w/index.php?title=Diskuse:Zkoum%C3%A1m_OpenOffice.org_Base_(Juandev)&curid=4970&diff=43890&oldid=43499
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55256
Web browser: ---
Bug ID: 55256
Summary: Page.templates() cache does not respect get_redirect
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1257/
Reported by: tgr_
Created on: 2010-10-31 10:39:27
Subject: Page.templates() cache does not respect get_redirect
Original description:
Steps to reproduce:
page = wikipedia.Page\(someSite, someRedirect\)
page.templates\(\) \# returns \[\]
page.templates\(get\_redirect=True\) \# returns \[\] from cache even if the
page does have templates
Pywikipedia \[http\] trunk/pywikipedia \(r8690, 2010/10/28, 15:34:19\)
Python 2.6.5 \(r265:79096, Mar 19 2010, 21:48:26\) \[MSC v.1500 32 bit
\(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=67276
Bug ID: 67276
Summary: edit conflict raises PageNotSaved exception instead of
EditConflict
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Web browser: ---
Mobile Platform: ---
>>> Benutzer Diskussion:Bernd Schwabe in Hannover <<<
+
+ {{ers:user:xqbot/LD-Hinweis|Harald Härke|angelegte}}
Comment: Bot: Benachrichtigung über Löschdiskussion zum Artikel [[Harald
Härke]]
Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 153, in <module>
run_python_file(fn, argv, argvu)
File "C:\pwb\core\pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "C:\pwb\core\scripts\la.py", line 273, in <module>
main()
File "C:\pwb\core\scripts\la.py", line 265, in main
bot.run()
File "C:\pwb\core\scripts\la.py", line 96, in run
self.treat(article)
File "C:\pwb\core\scripts\la.py", line 156, in treat
self.inform(user, page=page.title(), action=u'angelegte')
File "C:\pwb\core\scripts\la.py", line 194, in inform
if not self.save(text, talk, self.summary % param, minorEdit=False):
File "C:\pwb\core\scripts\la.py", line 238, in save
minorEdit=minorEdit, botflag=botflag)
File "C:\pwb\core\pywikibot\page.py", line 964, in put
**kwargs)
File "C:\pwb\core\pywikibot\__init__.py", line 423, in wrapper
return method(*__args, **__kw)
File "C:\pwb\core\pywikibot\page.py", line 885, in save
**kwargs)
File "C:\pwb\core\pywikibot\page.py", line 911, in _save
raise pywikibot.PageNotSaved("%s: %s" % (link, err))
pywikibot.exceptions.PageNotSaved: [[Benutzer Diskussion:Bernd Schwabe in
Hannover]]: editpage: Edit conflict detected; saving aborted.
<class 'pywikibot.exceptions.PageNotSaved'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
The Problem is that try: ... except pywikibot.EditConflict does not hints the
exceptions but it should do.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55264
Web browser: ---
Bug ID: 55264
Summary: SpamFilter error not raising
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1217/
Reported by: betacommand
Created on: 2010-08-06 00:04:04
Subject: SpamFilter error not raising
Original description:
this is related to
https://sourceforge.net/tracker/?func=detail&aid=3028176&group\_id=93107&at…
pywikipedia quietly fails when triggering the spam filter
\{u'edit': \{u'spamblacklist': u'http://www.gamerbrain.net', u'result':
u'Failure'\}\}
is one example of the returned tuple either the API changed or someone broke
something
Python 2.6.5 \(r265:79063, Apr 16 2010, 13:09:56\)
\[GCC 4.4.3\]
config-settings:
use\_api = True
use\_api\_login = True
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68315
Bug ID: 68315
Summary: config default editor on Windows detection fails
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
Steps to reproduce (core):
1. Set up an editor for .txt
2. Run python pwb.py pywikibot/config2.py
Expected results:
The 'editor' config variable should be set to the editor set up for .txt. i.e.
editor='C:\\Path\\to\\editor.exe'
Actual results:
editor=None
pywikibot configuration tries to automatically detect a text editor to use,
using the Windows registry key
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithProgids
That exists for WinXP and later versions, and documentation can be found here:
http://msdn.microsoft.com/en-us/library/bb166549.aspxhttp://msdn.microsoft.com/en-us/library/bb165967.aspx
As can be seen in that documentation, the key name is relevant, and the key
value is always REG_NONE (zero-length binary value)
However to find the appropriate progid within that key, pywikbot uses
_winreg.EnumValue(key, 1)
As can be seen at
https://docs.python.org/2/library/_winreg.html#_winreg.EnumValue , the '1' in
the second parameter returns "An object that holds the value data, and whose
type depends on the underlying registry type".
Changing it to _winreg.EnumValue(key, 0) causes _winreg to return "A string
that identifies the value name" and suddenly the detection works correctly.
This has existed since the first version in compat/ in 2007
https://git.wikimedia.org/blobdiff/pywikibot%2Fcompat/36a702559c94c0b12f5cc…
However, it doesnt really work as one would expect, since it hooks onto .txt,
rather than .py
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64468
Bug ID: 64468
Summary: improve diff visualization for Wikibase entities
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: ricordisamoa(a)live.it
Depends on: 39147
Web browser: ---
Mobile Platform: ---
pywikibot.showDiff(oldText, newText) is currently used to compare two wikicode
strings. But what about data items?
We should either:
* use the API to get a diff in structured format (bug 39147), or:
* convert dicts to strings somehow, before sending them to difflib
More ideas are welcome.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68725
Bug ID: 68725
Summary: import of compat SVN working copy requires internet
connection
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: sebastian.bank(a)uni-leipzig.de
Web browser: ---
Mobile Platform: ---
wikipedia.py retrieves version.getversiondict()["rev"] to set the User-agent
when imported.
https://gerrit.wikimedia.org/r/#/c/86374/ changed version.getversion_svn() to
unconditionally ask github for the git-hash. However, the hash itself isn't
actually used in wikipedia.py (see also
https://bugzilla.wikimedia.org/show_bug.cgi?id=54686).
This undermines e.g. to unpickle previously saved page objects when access to
github.com does not work. It also seems an unpleasant thing, to make such a
roundtrip every time the library is imported, right?
Maybe getversiondict() and the code it dispatches to can get an opt-out (not to
retrieve information by speaking to the network) to be used in the User-agent
case.
>>> import wikipedia
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import wikipedia
File "wikipedia.py", line 6023, in <module>
versionrev=(version.getversiondict()["rev"])
File "pywikibot\version.py", line 58, in getversiondict
(tag, rev, date, hsh) = getversion_svn(_program_dir)
File "pywikibot\version.py", line 151, in getversion_svn
{'Label': rev, 'User-Agent': 'SVN/1.7.5-pywikibot1'})
File "C:\Program Files\Python27\lib\httplib.py", line 995, in request
self._send_request(method, url, body, headers)
File "C:\Program Files\Python27\lib\httplib.py", line 1029, in _send_request
self.endheaders(body)
File "C:\Program Files\Python27\lib\httplib.py", line 991, in endheaders
self._send_output(message_body)
File "C:\Program Files\Python27\lib\httplib.py", line 844, in _send_output
self.send(msg)
File "C:\Program Files\Python27\lib\httplib.py", line 806, in send
self.connect()
File "C:\Program Files\Python27\lib\httplib.py", line 1194, in connect
self.timeout, self.source_address)
File "C:\Program Files\Python27\lib\socket.py", line 553, in
create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno 11004] getaddrinfo failed
Pywikibot: pywikibot-compat (8317312, s11008, 2014/07/27, 11:54:19, ok)
Release version: 1.0b1
Python: 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=67956
Bug ID: 67956
Summary: Intermittent failure of test_fromPage_noitem
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
It first appeared here, on the py2.7 build only
https://travis-ci.org/wikimedia/pywikibot-core/jobs/29067805
And then in the next build it disappeared.
It is back again:
https://travis-ci.org/wikimedia/pywikibot-core/jobs/29843942
This is almost certainly a problem with the utility method
get_test_unconnected_page, which is a rough hack and should be replaced with a
generator, or made more robust.
--
You are receiving this mail because:
You are the assignee for the bug.