https://bugzilla.wikimedia.org/show_bug.cgi?id=70494
--- Comment #3 from John Mark Vandenberg <jayvdb(a)gmail.com> ---
That fixed 'itwp.fileIsShared' for a shared file.
However should 'commons.fileIsShared' for a non-local file return False instead
of raise NoPage?
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70494
Mpaa <mpaa.wiki(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|PATCH_TO_REVIEW |RESOLVED
CC| |mpaa.wiki(a)gmail.com
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70494
Gerrit Notification Bot <gerritadmin(a)wikimedia.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |PATCH_TO_REVIEW
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70494
--- Comment #1 from Gerrit Notification Bot <gerritadmin(a)wikimedia.org> ---
Change 158921 had a related patch set uploaded by John Vandenberg:
fileIsShared fails on sites with shared file repo
https://gerrit.wikimedia.org/r/158921
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70492
Bug ID: 70492
Summary: Make Page.interwiki() use api instead of parsing the
text
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
In page.py in the Page object we have the following function:
https://git.wikimedia.org/blob/pywikibot%2Fcore.git/aba68924c8221f111fa28eb…
def interwiki(self, expand=True):
"""Iterate interwiki links in the page text, excluding language links.
@param expand: if True (default), include interwiki links found in
templates transcluded onto this page; if False, only iterate
interwiki links found in this page's own wikitext
@type expand: bool
@return: a generator that yields Link objects
"""
# This function does not exist in the API, so it has to be
# implemented by screen-scraping
The MediaWiki api now has the function "iwlinks"
(https://www.mediawiki.org/wiki/API:Iwlinks) that seems to do what we need. See
for example
https://commons.wikimedia.org/w/api.php?action=query&prop=iwlinks&titles=Cr…
The interwiki() function should be reimplemented using the api.
--
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=70494
Merlijn van Deen <valhallasw(a)arctus.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Pywikipedia-bugs(a)lists.wiki
| |media.org
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70447
Bug ID: 70447
Summary: movepages.py unable to login if no password.lwp is
present
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: mpaa.wiki(a)gmail.com
Web browser: ---
Mobile Platform: ---
After deleting password.lwp, it was unable to login with right username and
rights.
Move action then fails.
To recover, I tried replace.py, who asked for a password, and then movepages.py
was OK again.
Looks like replace.py has superpowers compared to movepages.py
user@pc:~/python/core {master}$ python scripts/movepages.py -pairs:pairs.txt
-summary:"Bot request: move after Index move" -noredirect -pt:0
Moving page [[Page:Ackermann’s Repository of Arts 1809-v01-Jan-Jun.djvu/1]] to
[[Page:Repository of Arts, Series 1, Volume 01, 1809, January-June.djvu/1]]
WARNING: API warning (tokens): action=tokens has been deprecated. Please use
action=query&meta=tokens instead.
Action 'move' is not allowed for the current user
Traceback (most recent call last):
File "scripts/movepages.py", line 283, in <module>
main()
File "scripts/movepages.py", line 271, in main
bot.moveOne(page, pair[1])
File "scripts/movepages.py", line 80, in moveOne
deleteAndMove=self.getOption('noredirect'))
File "/home/user/python/core/pywikibot/tools.py", line 315, in wrapper
return method(*__args, **__kw)
File "/home/user/python/core/pywikibot/page.py", line 1458, in move
noredirect=deleteAndMove)
File "/home/user/python/core/pywikibot/site.py", line 3606, in movepage
token = self.tokens['move']
File "/home/user/python/core/pywikibot/site.py", line 1168, in __getitem__
storage = self.site._tokens.setdefault(self.site.user(), {})
KeyError: 'move'
<type 'exceptions.KeyError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.