Re: [web2py] Dict object has no attribute 'rstrip'

2012-07-05 Thread Jonathan Lundell
On 5 Jul 2012, at 7:19 AM, adohertyd wrote: > That's the thing, I don't know where it is being called or why! I haven't > specified it, so I'm assuming it's coming from this block of code: > >> import requests >> bing = >> "https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/Web?Qu

Re: [web2py] Dict object has no attribute 'rstrip'

2012-07-05 Thread adohertyd
That's the thing, I don't know where it is being called or why! I haven't specified it, so I'm assuming it's coming from this block of code: import requests bing = " https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/Web?Query=%(term)s&$top=50&$format=json " API_KEY= 'mykey'

Re: [web2py] Dict object has no attribute 'rstrip'

2012-07-05 Thread Jonathan Lundell
On 5 Jul 2012, at 6:55 AM, adohertyd wrote: > Me again! I don't know why I am getting this error. The process() function > takes in a value session.term, processes it, and returns it as a dict type so > that it can be mapped to URL's in the next function. The results() function > sends the varia

[web2py] Dict object has no attribute 'rstrip'

2012-07-05 Thread adohertyd
Me again! I don't know why I am getting this error. The process() function takes in a value session.term, processes it, and returns it as a dict type so that it can be mapped to URL's in the next function. The results() function sends the variable 'term' to 3 different API URL's which all shoul