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=70060
Bug ID: 70060
Summary: Update Pywikibot for new token handling
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
Web browser: ---
Mobile Platform: ---
See I2793a3f2dd64a4bebb0b4d065e09af1e9f63fb89. Current method (action=tokens)
will still work, but emits deprecation notices.
--
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=69039
Bug ID: 69039
Summary: welcome raises TypeError exception if site is not
configured
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: ---
$ python pwb.py scripts/welcome.py -family:wikidata -lang:wikidata
[NoAct] Betterknower has no contributions.
[NoAct] PAC2 has no contributions.
[Match] Arseny1992 has enough edits to be welcomed.
Traceback (most recent call last):
File "pwb.py", line 157, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/welcome.py", line 966, in <module>
main()
File "scripts/welcome.py", line 955, in main
bot.run()
File "scripts/welcome.py", line 750, in run
% globalvar.defaultSign)
TypeError: unsupported operand type(s) for %: 'NoneType' and 'str'
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
The NoneType is welcome_text = i18n.translate(self.site, netext)
--
You are receiving this mail because:
You are the assignee for the bug.