feel dumb asking about this subject again but what is correct way to get
the individual value?
here is what the data looks like
{{x=request.get_vars.x}}
<p>this is X:<br> {{=x}}</p>
this is X:
{u'placeName': u'Novato', u'countryCode': u'US', u'lat': 38.061837,
u'postalcode': u'94949', u'lng': -122.540408, u'adminName2': u'Marin',
u'adminCode1': u'CA', u'adminCode2': u'041', u'adminName1': u'California'}
When I try to isolate a member of the dict like this:
{{=x['postalcode']}}
I get this error:
<type 'exceptions.TypeError'> string indices must be integers, not str
thanks,
Alex Glaros
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.