Hi all,
I am writing a little application to make edits on (Italian) Wikipedia using OAuth. I use in particular flask_mwoauth[1].
This tool is intended to insert "wikipedia" tags in OpenStreetMap and coordinates in Wikipedia.
== A Little Context == The Italian OpenStreetMap community is very eager about collaborating with Wikipedia, especially in the last months when an Italian OpenStreetMap contributor (User:Groppo) created this tool: Wikipedia-tags-in-OSM http://geodati.fmach.it/gfoss_geodata/osm/wtosm/index.html
As you can imagine from its name this tool was born with the idea of helping OSM user to tag objects in OSM with the corresponding wikipedia=* tag (more info about the "wikipedia" tag in OSM here[1]). The source code (GPL) is here: https://github.com/simone-f/wikipedia-tags-in-osm
The idea is based on a tool by User:Kolossos from de.wiki[2] which does something similar (but without several features, this OAuth thing being one of them) (not secondarily, at least for my point of view, that tool is in PHP, a language I don't know very much so I am much more happy of contributing to a Python project).
I have contributed to the tool in the past weeks and, since the tool also signal when an object is tagget is OSM but it has no coordinates on Italian Wikipedia (those are the articles with a little purple (W) I wanted to make the process of adding coordinates from OSM to Wikipedia easier.
Now if you click on the little (W) you see a popup explaining what you have to do, instead here's what I have done so far as I told it to the Italian OSM community: https://lists.openstreetmap.org/pipermail/talk-it/2014-January/040981.html (the e-mail is in Italian but I think the screenshots are understandable)
I need to polish it and fix several little (and not-so-little) details, but the core of the idea is there.
== The Problem == So for now I have two consumers registered: both on mediawiki.org. One is for my first test and I have called it test-app, it allows only to make edits on mediawiki.org, the other is called wtosm and allows editing of it.wikipedia.org
Now I have shared the code of my contribution here (it's also in the e-mail above, but here's again the link): https://github.com/CristianCantoro/wikipedia-tags-in-osm/tree/wikimap
Of course I am not sharing the consumer token and secret but I was wondering: if anybody wants to contribute to code of the project how they should proceed? As it is now it seems that they need to register their own consumer to get the keys? This seems a little illogic as a process, to me.
Do you have any idea of what is The Right Way(TM) to do this?
Thank you in advance.
Cristian
(sorry, I forgot the references)
2014/1/21 Cristian Consonni kikkocristian@gmail.com:
I am writing a little application to make edits on (Italian) Wikipedia using OAuth. I use in particular flask_mwoauth[1].
[...]
As you can imagine from its name this tool was born with the idea of helping OSM user to tag objects in OSM with the corresponding wikipedia=* tag (more info about the "wikipedia" tag in OSM here[1]). The source code (GPL) is here: https://github.com/simone-f/wikipedia-tags-in-osm
The idea is based on a tool by User:Kolossos from de.wiki[2] which does something similar
[...]
C
[1] https://github.com/valhallasw/flask-mwoauth [1bis] http://wiki.openstreetmap.org/wiki/Wikipedia [2] http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RemoteControl/Add-tags#Index...
Hi Cristian,
We did basically the same thing with Wikimetrics. For development, we just registered a consumer that redirects to localhost:5000 and committed the consumer key and secret. Here's the relevant config file:
https://git.wikimedia.org/blob/analytics%2Fwikimetrics.git/f0aa046c401f0726a...
Let me know if you have any questions. The "production" configuration is just hidden and kept secret on the wikimetrics server.
On Mon, Jan 20, 2014 at 6:52 PM, Cristian Consonni kikkocristian@gmail.comwrote:
(sorry, I forgot the references)
2014/1/21 Cristian Consonni kikkocristian@gmail.com:
I am writing a little application to make edits on (Italian) Wikipedia using OAuth. I use in particular flask_mwoauth[1].
[...]
As you can imagine from its name this tool was born with the idea of helping OSM user to tag objects in OSM with the corresponding wikipedia=* tag (more info about the "wikipedia" tag in OSM here[1]). The source code (GPL) is here: https://github.com/simone-f/wikipedia-tags-in-osm
The idea is based on a tool by User:Kolossos from de.wiki[2] which does something similar
[...]
C
[1] https://github.com/valhallasw/flask-mwoauth [1bis] http://wiki.openstreetmap.org/wiki/Wikipedia [2] http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RemoteControl/Add-tags#Index...
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
2014/1/21 Dan Andreescu dandreescu@wikimedia.org:
Hi Cristian,
We did basically the same thing with Wikimetrics. For development, we just registered a consumer that redirects to localhost:5000 and committed the consumer key and secret. Here's the relevant config file:
https://git.wikimedia.org/blob/analytics%2Fwikimetrics.git/f0aa046c401f0726a...
Let me know if you have any questions. The "production" configuration is just hidden and kept secret on the wikimetrics server.
This makes a lot of sense, I will register a wtosm-test consumer and configure it to point to localhost.
Another question is: i would like to drop my first "test-app" consumer. How can I do it?
Thank you.
Cristian
Yeah, it's not possible to drop it yourself yet. Let me, or any oauth admin (stewards) know that you wasn't it dropped, and we can reject it. On Jan 21, 2014 6:31 AM, "Dan Andreescu" dandreescu@wikimedia.org wrote:
Another question is: i would like to drop my first "test-app" consumer. How can I do it?
I'm not sure, but I would like to drop a consumer as well. Last time I asked it was not yet possible. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org