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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55267
Web browser: ---
Bug ID: 55267
Summary: Page.fullVersionHistory doesn't return full version
history
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/1211/
Reported by: harriv
Created on: 2010-07-13 23:40:52
Subject: Page.fullVersionHistory doesn't return full version history
Original description:
Page.fullVersionHistory returns only 999 first revision, not all of them. It
seems to use Special:Export, using API would be better.
$ python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r8355, 2010/07/12, 17:38:30\)
Python 2.5.2 \(r252:60911, Jan 24 2010, 17:44:40\)
\[GCC 4.3.2\]
config-settings:
use\_api = True
use\_api\_login = True
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=61846
Bug ID: 61846
Summary: version.py crashes on tool labs
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
CC: russblau(a)hotmail.com
Web browser: ---
Mobile Platform: ---
Russell Blau 2014-02-24 02:45:56 CET
This just leads to a new error:
/usr/lib/python2.7/subprocess.py in _execute_child(self=<subprocess.Popen
object>, args=['git.cmd', '--no-pager', 'log', '-1',
'--pretty=format:"%ad|%an|%h|%H|%d"--abbrev-commit', '--date=iso'],
executable='git.cmd', preexec_fn=None, close_fds=False,
cwd='/shared/pywikipedia/rewrite', env=None, universal_newlines=False,
startupinfo=None, creationflags=0, shell=False, p2cread=None, p2cwrite=None,
c2pread=8, c2pwrite=9, errread=None, errwrite=None)
1247 if fd is not None:
1248 os.close(fd)
=> 1249 raise child_exception
1250
1251
child_exception = OSError(2, 'No such file or directory')
<type 'exceptions.OSError'>: [Errno 2] No such file or directory
args = (2, 'No such file or directory')
child_traceback = 'Traceback (most recent call last):\n File
"/usr/...st)\nOSError: [Errno 2] No such file or directory\n'
errno = 2
filename = None
message = ''
strerror = 'No such file or directory'
Basically, getversiondict() needs to be able to fail gracefully and return some
kind of placeholder value if it isn't able to locate either a GIT or SVN
version number, rather than throw an exception and stop the entire framework
from executing.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56035
Web browser: ---
Bug ID: 56035
Summary: It's unclear what the default values for
RecentChangesPageGenerators arguments do
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: themineo+wikibz(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
RecentChangesPageGenerator takes a few arguments like showMinor, showAnon, ...
that are supposed to be boolean. However, they all have a default value of
None, but the documentation only covers the case where they're either True or
False. (The same is true for the recentchanges method in site.py that the
generator uses.)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=62008
Bug ID: 62008
Summary: Add commonsMedia 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: ---
As pointed out in
https://www.wikidata.org/wiki/User:Underlying_lk/sandbox#commonsMedia_suppo…
, it should be relatively easy to add image support.
elif claim.getType() == 'commonsMedia':
mediasite = pywikibot.Site("commons", "commons")
image = pywikibot.ImagePage(mediasite, value)
claim.setTarget(image)
Instead of using ImagePage I think Link() should be used.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125
Web browser: ---
Bug ID: 55125
Summary: Harvest_template.py aborts when the value is empty
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/1663/
Reported by: gerardm
Created on: 2013-08-30 08:03:50.007000
Subject: Harvest_template.py aborts when the value is empty
Original description:
When a template has no value (null) the bot should not abort but preferably
write to an error log for later processing.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55124
Web browser: ---
Bug ID: 55124
Summary: Harvest_template.py aborts when the value is a red
link
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/1664/
Reported by: gerardm
Created on: 2013-08-30 08:05:36.536000
Subject: Harvest_template.py aborts when the value is a red link
Original description:
When the value is a "red link", the bot should continue and preferably write to
an error log (for later processing)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60739
Web browser: ---
Bug ID: 60739
Summary: Missing message for the anti-spam filter error
Product: Pywikibot
Version: compat (1.0)
Hardware: PC
OS: Windows XP
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: basilicofresco(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
At the moment you do not get any error message when you try to change a page
with replace.py and the spam filter blocks your edit.
For example writing...
replace.py "htttp" "http" -page:"Clinique makeup" -lang:en
The edit will not be saved but you will get:
1 page was changed.
Updating page [[Clinique makeup]] via API
The variable "error" at line 10317 in wikipedia.py is None, but should be
SpamfilterError.
version.py:
Pywikibot: [https] r/pywikibot/compat (r10829, 5b8f363, 2014/02/02, 13:13:58,
ok)
Release version: 1.0b1
Python: 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
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=55109
Web browser: ---
Bug ID: 55109
Summary: Multilingual development
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/101/
Reported by: Anonymous user
Created on: 2007-08-06 17:47:39
Subject: Multilingual development
Original description:
English speaking at end
==Francais== Texte d'origine
Bonjour
Je voudrais vous proposer un système qui permet de rendre le robot multilingue.
En effet, tous les messages envoyé à la console sont anglophone. Or le but d'un
robot est de s'adapter à la multitude des languages pouvant exister de la part
des utilisateurs. C'est pour cela que je vous propose le système suivant :
Création d'un nouveau répertoire 'lang'. Dans ce répertoire s'y trouverait des
fichiers de type XX.py \(XX étant le code ISO 639 de la langue\). Donc ce
répertoire contiendra 1 ficher par code de langue existant.
Lorsque les différents programmes veulent afficher un message sur la console,
la commande utilisé est très souvent 'wikipedia.output' ou 'wikipedia.input'.
Le travail de cette commande serait d'appeller le fichier xx.py avec le numéro
du message à renvoyer en paramètre, le choix du xx serait donnée par la
variable mylang de user-config.py. le fichier xx.py enverrais alors le message
à afficher en tenant compte des différentes variables de type %s \(ou autre\)
bien entendu
Exemple :
dans user-config.py, j'ai "mylang = 'fr'"
Replace.py à la ligne 375 contient la commande "wikipedia.input\(u'Please enter
the new text:'\)",
Le nouveau système coderait "wikipedia.input\(u'Please enter the new text:'\)"
par "wikipedia.input.message\(284\)"
appelerait donc lang/fr.py et lui demanderais de lui retourner le message n°
284 qui serait "s'il vous plais, entrez le nouveaux texte :" et le lui
retourne.
Voila, en esperant avoir compris ma demande.
Je vous remercie de votre écoute
==English== Text translates since French by a machine translation system
Hello
I would like to propose you a system which allows to return the multilingual
robot. Indeed, all the messages messenger in the console are English-speaking.
Now the purpose of a robot is to adapt itself to the multitude of the languages
which can exist on behalf of the users. It is for it that I propose you the
following system:
Creation of a new directory ' lang '. In this directory would be files of type
XX.py \(XX there being the code ISO 639 of the language\). Thus this directory
will contain 1 file by existing code of language.
When the various programs want to post a message on the console, the order used
is very often ' wikipedia.output ' or ' wikipedia.input '. The work of this
order would be to call the xx.py file with the number of the message to be sent
back in parameter, the choice of the xx would be given by the mylang variable
to user-config.py
The xx.py file would send then the message to be posted\(shown\) by taking into
account various variables of type %s \(or other\) naturally
Example:
In user-config.py, I have " mylang = ' fr ' "
Replace.py in the line 375 contains the command " wikipedia.input \(u' Please
enter the new text: '\) ",
The new system would code " wikipedia.input \(u' Please enter the new text: '\)
"by" wikipedia.input.message \(284\) " call thus lang/fr.py and would ask it to
return it the message n° 284 which would be " s'il vous plais, entrez le
nouveaux texte : ".
Here we are, by hoping to have understood my demand.
I thank you for your listening
--
You are receiving this mail because:
You are the assignee for the bug.