https://bugzilla.wikimedia.org/show_bug.cgi?id=66102
Bug ID: 66102
Summary: use one library for all http requests
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: ---
pywiki mostly depends on httplib2.
There are a few cases of urllib.urlopen (and others) being used in the
pywikibot library code, and a number of scripts which use other http request
routines.
Multiple routines results in multiple configuration and multiple sets of
possible errors.
Has there been any investigation whether requests or urllib3 would suit our
needs better (e.g. offloading some problems onto another project)?
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66161
Bug ID: 66161
Summary: add option to set httplib2.debuglevel
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: ---
httplib2 has debugging capabilities (httplib2.debuglevel), which would be
useful to control from the pywikibot config, and ideally capture its debug
output into the pywikibot logging layer
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=65981
Bug ID: 65981
Summary: WARNING: API warning (categorymembers): Too many
values supplied for parameter 'gcmnamespace': the
limit is 50
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: bugzilla.wikimedia(a)publi.purodha.net
Web browser: ---
Mobile Platform: ---
Various bot commands end with the message:
WARNING: API warning (categorymembers): Too many values supplied for parameter
'gcmnamespace': the limit is 50
Trying to find the reason in the code, grep does not find various pieces of
that message. Thus I was not able to locate its origin in the code. :-(
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=65971
Bug ID: 65971
Summary: saving a page with empty text should be allowed with
force flag
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: ian(a)iankelling.org
Web browser: ---
Mobile Platform: ---
http://lists.wikimedia.org/pipermail/pywikipedia-l/2014-May/008740.html
There is a force flag, in the code, but it is not used to allow saving empty
pages. It should be. Probably an easy fix along with this is that the correct
exception is caught in Page._save and not re-raised - instead, a different
Exception is raised, which makes it harder to debug the code.
Here is an example script, and the error when running it
import pywikibot
site = pywikibot.Site()
page = pywikibot.Page(site, "MediaWiki:Lastmodifiedat")
page.text = ""
page.save()
Logging in to ianwiki:en as Ian Kelling
Traceback (most recent call last):
File "pwb.py", line 143, 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/iansetup.py", line 5, in <module>
page.save()
File "/a/opt/pywikibot/pywikibot/page.py", line 858, in save
**kwargs)
File "/a/opt/pywikibot/pywikibot/page.py", line 884, in _save
raise pywikibot.PageNotSaved("%s: %s" % (link, err))
pywikibot.exceptions.PageNotSaved
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
<class 'pywikibot.exceptions.PageNotSaved'>
The cause is in site.py, in def editpage, line 2699:
if not text:
raise Error("editpage: no text to be saved")
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=65989
Bug ID: 65989
Summary: automatically add changed section to edit summary when
saving a page
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: ricordisamoa(a)openmailbox.org
Blocks: 65987
Web browser: ---
Mobile Platform: ---
If an edit changes a single section only, then the bot should be capable of
detecting that section's title and amend the edit summary in the form "/*
Section */ comment".
At least at first, it should be an opt-in feature.
--
You are receiving this mail because:
You are the assignee for the bug.