https://bugzilla.wikimedia.org/show_bug.cgi?id=73399
Bug ID: 73399
Summary: claimit.py should get list of Q for a property
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: reza.energy(a)gmail.com
Web browser: ---
Mobile Platform: ---
I want to add add multiple Q to a property like below but code doesn't support
multiple Q input
python pwb.py claimit -page:foo P140 Q47740,Q432,Q9585 -exists:pt -pt:0
please add this possibility
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73397
Bug ID: 73397
Summary: claimit.py should add q to existing property with
-exists:pt
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: reza.energy(a)gmail.com
Web browser: ---
Mobile Platform: ---
fa:شیخ_هارون=Q7492921
It doesn't have p140 > Q47740 but with this command the bot doesn't add Q47740.
python pwb.py claimit -page:شیخ_هارون P140 Q47740 -exists:pt
if i use -exists:ptq it works but it is not good becuase some items have p140 >
Q47740 without qualifier and bot make duplicated property
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55889
Web browser: ---
Bug ID: 55889
Summary: Thread-safe versions of the Generators
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: crangasi2001(a)yahoo.com
Classification: Unclassified
Mobile Platform: ---
Currently, the generators functions use yield, which is not tread-safe. PWB
should offer a thread-safe version using one of the many interesting
suggestions from http://www.dabeaz.com/generators/Generators.pdf (or any other
method :P)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=73370
Bug ID: 73370
Summary: deletedrevs deprecated
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: ---
in 1.25wmf..
list=deletedrevs becomes list=alldeletedrevisions
prop=deletedrevs becomes prop=deletedrevisions
http://git.wikimedia.org/blobdiff/mediawiki%2Fcore.git/991de897e4781597f60a…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72290
Bug ID: 72290
Summary: tilde in argument to -dir causes exception
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: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
If the directory ~/.pywikibot2 doesnt exist
/path/to/current/dir/ $ python pwb.py -dir:~/.pywikibot2 version
NOTE: ~/.pywikibot2/user-config.py was not found
Please follow the prompts to create it:
Traceback (most recent call last):
File "pwb.py", line 149, in <module>
run_python_file(path, [path], [path.decode('ascii')])
File "pwb.py", line 69, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "generate_user_files.py", line 19, in <module>
import pywikibot
File "pywikibot/__init__.py", line 29, in <module>
from pywikibot import config2 as config
File "pywikibot/config2.py", line 209, in <module>
_base_dir = get_base_dir()
File "pywikibot/config2.py", line 195, in get_base_dir
raise RuntimeError("Directory '%s' does not exist." % base_dir)
RuntimeError: Directory '/path/to/current/dir/~/.pywikibot2' does not exist.
(that path.decode('ascii') looks defective too)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55158
Web browser: ---
Bug ID: 55158
Summary: getFileVersionHistory doesn't work if information is
hidden
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/1550/
Reported by: stefan2wiki
Created on: 2012-12-14 01:38:42
Subject: getFileVersionHistory doesn't work if information is hidden
Original description:
Take a file where some information is hidden, for example this one:
https://commons.wikimedia.org/wiki/File:Catania\_Piazza\_Quattro\_Canti.jpg
In this case, the edit summary for the first revision is missing.
Try this code:
import wikipedia
site = wikipedia.getSite\(u'commons', u'commons'\)
page = wikipedia.ImagePage\(site, u'File:Catania Piazza Quattro Canti.jpg'\)
history = page.getFileVersionHistory\(\)
I get an error message:
Traceback \(most recent call last\):
File "<stdin>", line 1, in <module>
File "wikipedia.py", line 4194, in getFileVersionHistory
result.append\(\(i\['timestamp'\], i\['user'\], u"%s×%s" % \(i\['width'\],
i\['height'\]\), i\['size'\], i\['comment'\]\)\)
KeyError: 'comment'
There is no i\['comment'\] because the comment is hidden \(deleted\).
Result: The script crashes when running getFileVersionHistory. It would be
better if getFileVersionHistory at least returns what's available, instead of
returning nothing at all. For example, if you use i.get\('comment'\) instead of
i\['comment'\], then getFileVersionHistory returns None if there is no comment.
That seems much better than crashing.
Some version information:
Pywikipedia \(r10715 \(wikipedia.py\), 2012/11/13, 20:56:05\)
Python 2.7.3 \(default, Aug 1 2012, 05:16:07\)
\[GCC 4.6.3\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72942
Bug ID: 72942
Summary: interwiki option causes error
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: pagegenerators
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
D:\Py\rewrite>pwb.py replace -regex -interwiki:Category:Francouzština
-family:wiktionary -regex "\[\[za:(.*?)\]\]\n" ""
Exception in thread Put-Thread:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 551, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "D:\Py\rewrite\pywikibot\__init__.py", line 679, in async_manager
request(*args, **kwargs)
File "D:\Py\rewrite\scripts\replace.py", line 724, in display_edit_counter
pywikibot.output(u'\n%s pages changed.' % bot.changed_pages)
AttributeError: 'NoneType' object has no attribute 'output'
in compat it works well
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72496
Bug ID: 72496
Summary: untaggedGenerator in checkimages uses obsolete
toolserver tool
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: ---
URL = u'https://toolserver.org/~daniel/WikiSense/UntaggedImages.php?'
"Tool Migration in Progres
The WikiSense tools could not be migrated seamlessly from the Toolserver
environment to ToolLabs. I'm working on fixing the most important tools, but
this may take a few days or even weeks. Sorry for the inconvenience."
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68617
Bug ID: 68617
Summary: editarticle uses deprecated optparser
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: ---
optparser was deprecated in py 2.7
https://docs.python.org/2/library/argparse.html#module-argparse
It is used by editarticle.py
--
You are receiving this mail because:
You are the assignee for the bug.