I *think* its because you are assigning x = 1 at the top of the template, which causes your for loop to fail because '1' is not in admin_list.
- Jim On Thursday, October 3, 2013 12:53:22 PM UTC-5, Vasiliy Boulytchev wrote: > > Gents, for whatever reason, I am not seeing templates rendering the > passed-in dictionary. This is working properly on another page of mine, and > the output is correct in console. What is the problem? > > My Python Class: > > class Admins: > def GET(self): > for x in admin_list: > print x['Email'], x['Date'] > return render.adminlist(admin_list = admin_list) > > (console output) > > adminlist.html > > $def with (admin_list) > $var title: Admin List. > $var x: 1 > > $for x in admin_list: > <h2> $x['Email'] </h2></h2> > > Output is empty :( Can someone please please please help? Thanks! > http://stackoverflow.com/questions/19165518/web-py-not-parsing-dictionary > -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy. For more options, visit https://groups.google.com/groups/opt_out.
