If you aren't using google app engine, then that should be okay. However if 
you are, you shouldn't convert it to an INT because you'll get errors.


On Tuesday, June 18, 2013 7:11:14 AM UTC-7, palomar wrote:
>
> I've just updated to 2.5.1 and I found this problem:
> Inside my site  have a google map and I need to add an array with several 
> marker;
> in my controller I have a simple query with a cycle
> def mappa:
>     markers=[]
>     for row in db().select(db.produttori.ALL):
>        markers.append([row.id, row.lat, row.lng])
> return dict(markers=XML(*[markers]))
>
> and I obtein ID + L, like this:
> [1L, '12.5', '7.6']
>
> so I need to do int(row.id)
> In the older version worked well...
> s.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to