[Ambassadors] Fedora Ambassadors Map

Ankur Sinha sanjay.ankur at gmail.com
Wed Jun 20 07:53:02 UTC 2012


On Tue, 2012-06-19 at 20:39 +0800, Mathieu Bridon wrote:
> I'm pretty sure patches are, as usual, welcome:
>     https://fedorahosted.org/fama/browser/ambassadors_map 

I played around with the code and well.. it works ;)

- the data file[1] needs to be regenerated using the script[2] (it has
an .erb extension, I moved it to correct this to .py)
Please make the following change so that it asks you for your FAS and
password, rather than using the dummy:


>     #username = 'fedoradummy'
>     #password = '<%= fedoraDummyUserPassword %>'
>     username = raw_input('Username: ').strip()
>     password = getpass.getpass('Password: ')    

- The ambassadors.html[3] file worked for me after this tiny change
(could be an openlayers API change). Patch here[5]:


> 47c47
> <             Osm = new OpenLayers.Layer.OSM.Osmarender("Open Street Map");
> ---
> >             Osm = new OpenLayers.Layer.OSM("Open Street Map");
> 50,51c50,51
> <             Mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
> <             map.addLayer(Mapnik);
> ---
> > //            Mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
> > //            map.addLayer(Mapnik);

I've hosted a working version here[4]

Please ensure that your locations in FAS are up to date. 

Joerg, Susmit: I think you folks take care of this. I'd request that
this map be re-generated on a quarterly basis (the last change to the
data was made 3 years ago according to the trac[6]). I could take care
of it if required. I don't know how to work server side etc., but I'm
sure I can learn :)

All the files for my version are at[7]

[1] https://fedorahosted.org/fama/browser/ambassadors_map/ambassadors_location.txt
[2] https://fedorahosted.org/fama/browser/membership-map.py.erb
[3] https://fedorahosted.org/fama/browser/ambassadors_map/ambassadors.html
[4] http://ankursinha.fedorapeople.org/ambassadors-map/ambassadors.html
[5] http://ankursinha.fedorapeople.org/ambassadors-map/ambassadors.html.patch
[6] https://fedorahosted.org/fama/browser/ambassadors_map
[7] http://ankursinha.fedorapeople.org/ambassadors-map/


-- 
Thanks, 
Warm regards,
Ankur: "FranciscoD"

Please only print if necessary. 

Looking to contribute to Fedora? Look here: https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.fedoraproject.org/pipermail/ambassadors/attachments/20120620/92d825db/attachment.sig>


More information about the ambassadors mailing list