https://bugzilla.wikimedia.org/show_bug.cgi?id=64457
Bug ID: 64457
Summary: provide support for sitelink badges in ItemPage
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: ricordisamoa(a)live.it
Depends on: 40810
Web browser: ---
Mobile Platform: ---
When badges will be actually supported by the WikibaseRepo extension (bug
40810, [[d:Wikidata:Development_plan#Badges]]), we may have to rework the whole
structure of ItemPage.sitelinks, either:
* using tuples as (Page, (ItemPage, ItemPage, ))
or:
* creating a new Sitelink class, with ItemPage.iterlinks() iterating over a
list of Sitelink instances, Sitelink.page returning a Page object, and
Sitelink.badges containing a list of ItemPage instances;
The latter scheme would probably increase maintainability in the long term.
Of course, we will also add functions to edit badges via the API.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=62126
Bug ID: 62126
Summary: Make Pywikibot not crash on new item creation bug
Product: Pywikibot
Version: core (2.0)
Hardware: All
URL: https://bugzilla.wikimedia.org/show_bug.cgi?id=46535
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
See https://bugzilla.wikimedia.org/show_bug.cgi?id=46535 . Everyone once in a
while you'll get an apierror when trying to create a new page:
File "C:\pywikibot\core\pywikibot\page.py", line 2523, in editEntity
baserevid=baserevid, **kwargs)
File "C:\pywikibot\core\pywikibot\site.py", line 721, in callee
return fn(self, *args, **kwargs)
File "C:\pywikibot\core\pywikibot\site.py", line 3725, in editEntity
data = req.submit()
File "C:\pywikibot\core\pywikibot\data\api.py", line 401, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: failed-save: Could not create a new page.
It already exists.
<class 'pywikibot.data.api.APIError'>
Error should be caught somewhere in the lower layers and it should be retried
(just like with connection problems). It should respect maxretries so it
doesn't get stuck in a loop
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64186
Bug ID: 64186
Summary: category.py tree uses all memory
Product: Pywikibot
Version: core (2.0)
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: category.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: pyfisch(a)googlemail.com
Web browser: ---
Mobile Platform: ---
$ python2 scripts/category.py tree
Reading dump from category.dump.bz2
For which category do you want to create a tree view? Internet
Please enter the name of the file where the tree should be saved,
or press enter to simply show the tree: tree.txt
Using category.py tree with big categories leads to memory waste, after a while
it consumes all available memory. (Currently 6359 MiB and still increasing)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64531
Bug ID: 64531
Summary: Add -end option to stop allpagesgenerator
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: info(a)gno.de
Web browser: ---
Mobile Platform: ---
the generator who is started with -start: option should be abled to stop with
sth like end: option
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64496
Bug ID: 64496
Summary: remove aliases with editAliases()
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: akkakk_bugzilla(a)yahoo.de
Web browser: ---
Mobile Platform: ---
editLabels and editDescriptions remove labels/descriptions when they are set to
"" (empty string). editAliases should do the same when aliases are set to []
(empty list).
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64494
Bug ID: 64494
Summary: on conflict with other label/description raise
exception instead of retrying
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: akkakk_bugzilla(a)yahoo.de
Web browser: ---
Mobile Platform: ---
when adding a label or description a conflict with another label with the same
label and description may occur. the framework currently retries to edit a lot
of times before failing with an TimeoutError. it should instead raise a
suitable exception.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64492
Bug ID: 64492
Summary: tests/site_tests.py TestSiteObject.testLinkMethods
raises pywikibot.data.api.APIError: gblbadcontinue:
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
Web browser: ---
Mobile Platform: ---
API Error: query=
{'action': 'query',
'format': 'json',
u'gblcontinue': '0|4709981|Main_Page',
u'gbllimit': '500',
u'gblnamespace': '0|2',
'gbltitle': 'Main Page',
'generator': 'backlinks',
'iiprop': 'comment|metadata|sha1|size|timestamp|url|user',
'indexpageids': '',
'inprop': 'protection',
'maxlag': '5',
'meta': 'userinfo',
'prop': 'categoryinfo|imageinfo|info',
'uiprop': 'blockinfo|hasmsg'}
response=
{u'servedby': u'mw1192', u'error': {}}
Traceback (most recent call last):
File "pwb.py", line 145, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "tests/site_tests.py", line 1117, in <module>
unittest.main()
File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
self.runTests()
File "/usr/lib/python2.7/unittest/main.py", line 229, in runTests
self.result = testRunner.run(self.test)
File "/usr/lib/python2.7/unittest/runner.py", line 151, in run
test(result)
File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
test(result)
File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
test(result)
File "/usr/lib/python2.7/unittest/case.py", line 391, in __call__
return self.run(*args, **kwds)
File "pwb.py", line 19, in <lambda>
import unittest; unittest.TestCase.run = lambda self,*args,**kw:
unittest.TestCase.debug(self)
File "/usr/lib/python2.7/unittest/case.py", line 396, in debug
getattr(self, self._testMethodName)()
File "tests/site_tests.py", line 248, in testLinkMethods
set(mysite.pagebacklinks(mainpage, namespaces=[0, 2]))))
File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/data/api.py", line
695, in __iter__
self.data = self.request.submit()
File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/data/api.py", line
493, in submit
self._data = super(CachedRequest, self).submit()
File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/data/api.py", line
421, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: gblbadcontinue: Invalid continue param. You should
pass the original value returned by the previous query
Probably caused by https://gerrit.wikimedia.org/r/#/c/103589/ / us building a
continue parameter instead of re-passing it.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56190
Web browser: ---
Bug ID: 56190
Summary: [Tracking] API design
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Classification: Unclassified
Mobile Platform: ---
This is a tracking bug for issues that need some thought in terms of API design
- e.g. discrepancies between compat and core, problems with the current
interface or new features for which it is not yet clear how they can be clearly
accessed.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=62009
Bug ID: 62009
Summary: Add coordinates to harvest_template
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: maarten(a)mdammers.nl
Web browser: ---
Mobile Platform: ---
We still have a lot of items on Wikidata that don't have coordinates. Would be
nice to be able to import them. I did this with some bots, but would of course
be nicer to have a generic bot so more people can help out.
How to fetch the data is going to be fun. We have all sorts of fields that need
to be combined:
* It can be in decimal notation, than we have to combine the lat and lon fields
* It can be in deg/min/sec/direction notation, than we have up to 8 fields to
handle.
* Probably other variants in the wild
Maybe add some field options so we can do <somefield> "P625|<keyword".
Than we would have keywords like
* lat - The latitude, either just a degree or with some decimals
* lanmin - Minutes to be added to the latitude
* latsec - Seconds to be added to the latitude
* latdir - Direction for the latitude. Different languages might have different
things here
For lon the same things (lon, lonmin, lonsec, londir)
--
You are receiving this mail because:
You are the assignee for the bug.