Re: Reserved word issue?

2013-07-17 Thread Tim Chase
On 2013-07-17 11:14, Nigel Legg wrote: > def on_interaction(self, consumer, interaction, hash): ... > result.sm_Link = interaction['interaction']['link'] ... > Looking at the server log (development server) I get > result.sm_Link = interaction['interaction']['link'] > KeyError: 'link' >

Reserved word issue?

2013-07-17 Thread Nigel Legg
I am working on integrating social search through the Datasift API into my project. The API gives a json object, and I have printed part of it out to the screen, so I know that the link is working and I am receiving the right stuff. I now want to save some of the fields from the json to a model.