Re: getting data from a dictionary in a view

2012-10-31 Thread MikeKJ
On Wednesday, October 31, 2012 1:54:07 PM UTC, MikeKJ wrote: > > > Solved using > http://www.daniweb.com/software-development/python/code/217019/search-a-python-dictionary-both-waysby > Ene > Uran , thanks > -- You received this message because

Re: getting data from a dictionary in a view

2012-10-31 Thread MikeKJ
Solved using http://www.daniweb.com/software-development/python/code/217019/search-a-python-dictionary-both-ways by Ene Uran , thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

getting data from a dictionary in a view

2012-10-31 Thread MikeKJ
I want to interrogate a dictionary for a particular text cursor = connection.cursor() cursor.execute("SELECT distinct feature, featuredetails from features where the_id = %s", [id]) feature = dictfetchall(cursor) results in [{'featuredetails': u'', 'feature': u'TV_SET'}, {'featur