It looks like you already understand the basics of the Django
template, yes?

Assuming your code that you posted is in a Django template,
you should be able to this:


      field_list =
      #then pass it to your template
      self.renderPage("yourTemplatPage.html",
                    {"var1": var1,
                     "var2": var2,
                     "field_list": field_list
                    }
                  )

or

      self.renderPage("yourTemplatPage.html",
                    {"var1": var1,
                     "var2": var2,
                     "field_list": YourTableModelName.__dict__
                    }
                  )


I'm not so sure about properties vs __dict__, but I've had success
using __dict__.
I think officially "they" say that you should be able to get the same
info without using the hidden "underscore" variable names, but I
haven't mastered that yet.

Neal


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to