[Pywikipedia-bugs] [Maniphest] [Closed] T146609: Unable to find editor for files *.py when using pywikibot as library

2016-10-04 Thread Wesalius
Wesalius closed this task as "Resolved".Wesalius claimed this task.Wesalius added a comment.
I dont have a good explanation, but I cleaned my system of all old python installations, cleaned out the system variables and installed python 3.5.2 and pywikibot library anew and everything now runs fine, the script executes without errors.TASK DETAILhttps://phabricator.wikimedia.org/T146609EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: jayvdb, valhallasw, Aklapper, pywikibot-bugs-list, Wesalius, MayS, Mdupont, JJMC89, Alchimista___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T134563: Implement 'mark for deletion' for ItemPage

2016-10-04 Thread valhallasw
valhallasw added a comment.
I think this issue may have solved itself (sort of):

valhallasw@maeglin:pywikibot-core$ python pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> from pywikibot import ItemPage
>>> from pywikibot import Site
>>> p = pywikibot.ItemPage(pywikibot.Site('test', 'wikidata'), 'Q12848')
>>> p.delete()
Deleting [[wikidata:test:Q12848]].
Please enter a reason for the deletion: test
Can't delete [[wikidata:test:Q12848]]; do you want to mark it for deletion instead? ([y]es, [N]o, [a]ll): y
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/samba/src/pywikibot-core/pywikibot/tools/__init__.py", line 1417, in wrapper
return obj(*__args, **__kw)
  File "/home/samba/src/pywikibot-core/pywikibot/page.py", line 1839, in delete
self.text = template + self.text
TypeError: coercing to Unicode: need string or buffer, dict found

The correct result should be a {{delete}} template added on https://test.wikidata.org/w/index.php?title=Talk:Q12848 (as it can't be added on the item page itself)

Note that trying to delete-tag a non-existing item page gives a different error:

Traceback (most recent call last):
  File "", line 1, in 
  File "/home/samba/src/pywikibot-core/pywikibot/tools/__init__.py", line 1417, in wrapper
return obj(*__args, **__kw)
  File "/home/samba/src/pywikibot-core/pywikibot/page.py", line 1840, in delete
return self.save(summary=reason)
  File "/home/samba/src/pywikibot-core/pywikibot/tools/__init__.py", line 1417, in wrapper
return obj(*__args, **__kw)
  File "/home/samba/src/pywikibot-core/pywikibot/page.py", line 1208, in save
cc=apply_cosmetic_changes, quiet=quiet, **kwargs)
  File "/home/samba/src/pywikibot-core/pywikibot/page.py", line 1234, in _save
raise pywikibot.OtherPageSaveError(self, err)
OtherPageSaveError: Edit to page [[wikidata:test:Q1]] failed:
unknownerror: Unknown error: "wikibase-no-direct-editing" [help:See https://test.wikidata.org/w/api.php for API usage]

which should really throw a PageNotExists exception instead.TASK DETAILhttps://phabricator.wikimedia.org/T134563EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JameerBabu, valhallaswCc: dachary, TerraCodes, Aklapper, Zppix, valhallasw, pywikibot-bugs-list, MayS, Mdupont, JJMC89, MuhammadShuaib, jayvdb, Ricordisamoa, Alchimista___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T85271: document pywikibot.error and pywikibot.exception

2016-10-04 Thread valhallasw
valhallasw added a comment.
I clearly should have written a better bug report, because I can't reproduce the exact point ;-)

This is about the functions 'error' and 'exception' in https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/logging.py.

def output documents the meaning of the various parameters, but all of the other logging functions (def error, but also e.g. def warning, which was not mentioned in the bug title) are missing the extended documentation. That documentation should be added.TASK DETAILhttps://phabricator.wikimedia.org/T85271EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: valhallaswCc: AbdealiJK, jayvdb, valhallasw, Aklapper, pywikibot-bugs-list, MayS, Mdupont, JJMC89, Alchimista, Jay8g, Spage___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T147180: isbn formatting

2016-10-04 Thread Xqt
Xqt added a project: Upstream.
TASK DETAILhttps://phabricator.wikimedia.org/T147180EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, pywikibot-bugs-list, jayvdb, XZise, Xqt, MayS, Mdupont, JJMC89, Alchimista, Jay8g, Krenair___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T147180: isbn formatting

2016-10-04 Thread Xqt
Xqt added a parent task: T117165: Sometimes user-inserted ISBNs don't get converted to magic links somehow, meaning Parsoid has to nowiki them….
TASK DETAILhttps://phabricator.wikimedia.org/T147180EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, pywikibot-bugs-list, jayvdb, XZise, Xqt, MayS, Mdupont, JJMC89, Alchimista___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs