https://bugzilla.wikimedia.org/show_bug.cgi?id=72243
Bug ID: 72243
Summary: Implement site.wantedcategories
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: codecat42(a)gmail.com
Web browser: ---
Mobile Platform: ---
The Site object currently has a wantedpages method, but it is lacking an
equivalent wantedcategories method. The following code, inserted at line 4686
in site.py (above the existing wantedpages), works for me:
def wantedcategories(self, step=None, total=None):
"""Yield Pages from Special:Wantedcategories.
@param step: request batch size
@param total: number of pages to return
"""
wcgen = self._generator(api.CategoryPageGenerator,
type_arg="querypage", gqppage="Wantedcategories",
step=step, total=total)
return wcgen
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72208
Bug ID: 72208
Summary: redirect.py stopped working
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: redirect.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: rubin.happy(a)gmail.com
Web browser: ---
Mobile Platform: ---
When I am running redirect.py -br on ru.wiki, I get script crashed:
Pywikibot: [https] r-p-pywikibot-core.git (9f18c0d, g4311, 2014/10/17,
17:04:06, ok)
Release version: 2.0b2
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3]
unicode test: ok
httplib2 version: 0.7.2
tools.rubinbot@tools-login:~/.pywikibot$ python scripts/redirect.py br -delete
Retrieving special page...
>>> Бабл <<<
Traceback (most recent call last):
File "scripts/redirect.py", line 798, in <module>
main()
File "scripts/redirect.py", line 795, in main
bot.run()
File "scripts/redirect.py", line 708, in run
self.delete_broken_redirects()
File "scripts/redirect.py", line 403, in delete_broken_redirects
self.delete_1_broken_redirect(redir_name)
File "scripts/redirect.py", line 478, in delete_1_broken_redirect
redir_page.title(asLink=True))):
File "/shared/pywikipedia/core/pywikibot/bot.py", line 934, in user_confirm
default='N')
File "/shared/pywikipedia/core/pywikibot/bot.py", line 539, in input_choice
automatic_quit)
File
"/shared/pywikipedia/core/pywikibot/userinterfaces/terminal_interface_base.py",
line 274, in input_choice
question = '{0} ({1})'.format(question, ', '.join(formatted_options))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 18-21:
ordinal not in range(128)
<type 'exceptions.UnicodeEncodeError'>
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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72169
Bug ID: 72169
Summary: querymodules deprecated
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: tests
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
test.wikidata (which is using code not deployed to the production wikis) builds
on travis are failing because paraminfo param querymodules has been deprecated
in the API, and one of our scripts exercises code which uses querymodules, and
our script test fails if the script has deprecated warnings.
FAIL: test_interwiki_simulate (tests.script_tests.TestScript)
Test running interwiki -simulate.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/tests/script_tests.py",
line 320, in testScript
self.assertNotIn('deprecated', result['stderr'].lower())
AssertionError: 'deprecated' unexpectedly found in 'warning: api warning
(paraminfo): the querymodules parameter has been deprecated.\nwhich page to
check: warning: api warning (paraminfo): the querymodules parameter has been
deprecated.\nretrieving 1 pages from wikidata:test.\nnote: [[test:test page]]
does not exist. skipping.\n======post-processing [[test:test page]]======\n'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72207
Bug ID: 72207
Summary: detect write api actions
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: network
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
(Cloned from bug 55068 comment 10)
pywikbot api.py has a hard-coded list of 'write' actions, which cause it to
assert the user is logged in.
This should be converted to a detection algorithm (using API action paraminfo)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55068
Web browser: ---
Bug ID: 55068
Summary: Support the use of Assert Edit
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
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/feature-requests/241/
Reported by: p858snake
Created on: 2010-03-05 10:07:29
Subject: Support the use of Assert Edit
Original description:
It would be nice if the use of the Assert Edit\[1\] extension was supported by
the framework, Because for the wikis it is depolyed on \(All WMF wikis\) it
would prevent bots from editing unlogged inif they choose to have it assert its
edits.
\[1\]. http://www.mediawiki.org/wiki/Extension:Assert\_Edit
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=62388
Bug ID: 62388
Summary: Bot should not edit when it is not logged in:
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: info(a)gno.de
Web browser: ---
Mobile Platform: ---
see https://de.wikipedia.org/wiki/Spezial:Beitr%C3%A4ge/79.213.29.131
Sorry, I didn't find that edit in the log but I try to remeber it: Bot was
running for several days in an infinite loop. I shortly logged me in as bot on
de-wiki to change some settings. Most of my bot task stopped and asked for the
password to continue on both branches (core and compat) except of one. It asked
for a new token and continued, but it was logged out.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72206
Bug ID: 72206
Summary: Port patrol.py to core
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Other scripts
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
This script is wanted by Wikisource
http://git.wikimedia.org/blob/pywikibot%2Fcompat.git/master/patrol.py
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69980
Bug ID: 69980
Summary: patrol.py depends on mwlib.uparser not available
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: pdsanchez(a)gmail.com
Web browser: ---
Mobile Platform: ---
on wmflabs I ran
python patrol.py
and it complained on "import mwlib.uparser"
since it is no longer included.
Therefore, script can't work anymore
I just pulled again to check, and nothing
<pre>
ImportError: No module named mwlib.uparser
│tools.drini@tools-login:~/pywikibot-compat$ git pull
│remote: Counting objects: 737, done
│remote: Finding sources: 100% (9/9)
│remote: Getting sizes: 100% (1/1)
│remote: Compressing objects: 100% (6536/6536)
│remote: Total 9 (delta 5), reused 7 (delta 5)
│Unpacking objects: 100% (9/9), done.
│From https://gerrit.wikimedia.org/r/pywikibot/compat
│ 1ae3ae7..f4d1869 master -> origin/master
│Updating 1ae3ae7..f4d1869
│Fast-forward
│ family.py
| 2 +-
│ pywikibot/support.py
| 3 ---
│ 2 files changed, 1 insertion(+), 4 deletions(-)
│tools.drini@tools-login:~/pywikibot-compat$ python patrol.py
│Traceback (most recent call last):
>>> Historia del fútbol de Jalisco <<<
│ File "patrol.py", line 21, in <module>
- Los jóvenes almacenistas del Ciudad de méxico
desaparecieron del panorama futbolero,
│ import mwlib.uparser # used to parse the whitelist
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55880
Web browser: ---
Bug ID: 55880
Summary: [Tracking] Functionality existing in compat but
missing from 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: crangasi2001(a)yahoo.com
Classification: Unclassified
Mobile Platform: ---
This is a tracking bug for feature that existed in compat, are absent in core
and are still considered useful.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68560
Bug ID: 68560
Summary: Page.interwikis() fails when page includes interwikis
which are not sites
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: login.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
The current travis build shows an error caused by the "mail:" found on the Main
Page of English Wikipedia
The first travis build to exhibit this bug is
https://travis-ci.org/wikimedia/pywikibot-core/jobs/30562987
which is this changeset
https://gerrit.wikimedia.org/r/#/c/145691/
There has been one fixup committed
https://git.wikimedia.org/commit/pywikibot%2Fcore.git/5aa0d76a6f1c2dde140bb…
but that leaves mail: still not working, and the tests still failing.
--
You are receiving this mail because:
You are the assignee for the bug.