self.response.out.write(template.render('main.html',
{'lgourl':lgourl,'lista':lista}))2010/6/1 Massimiliano <[email protected]>: > Dear Geoffrey, > I need to pass to the render() three information: the main.hmtl, the logout > URL (lgourl) and the list of element in need to be displayed in the html. > How can I do this? is it this method wrong? Can't I give to the render() two > dicts? > > Regards > > Massimiliano > > 2010/5/31 Geoffrey Spear <[email protected]> >> >> It looks like you're passing 2 dicts to render(); you should only be >> passing 1 with all of the values. >> >> On May 31, 4:47 pm, Massimiliano <[email protected]> >> wrote: >> > Dear All, >> > I'm a beginner. I'm three days thinking about this, but it's not >> > working. >> > >> > In my main.py >> > lista = db.Query(FOOD).order('-Date').fetch(30) >> > self.response.out.write(template.render('main.html', {'lgourl':lgourl}, >> > {'lista':lista})) >> > >> > In my main.html >> > >> > {% block centro %} >> > {% for elemento in lista %} >> > {{elemento.Food}} ({{elemento.Nick}}) >> > {% endfor %} >> > {% endblock %} >> > >> > I can't display nothing. >> > >> > Please, this is driving me crazy! >> > >> > Massimiliano >> > >> > -- >> > >> > My email: [email protected] >> > My Google Wave: [email protected] >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> > > > > -- > > My email: [email protected] > My Google Wave: [email protected] > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
