Every call to the Admin Handler is a unique invocation of a python interperter.
Your global data 'global template_data' is RESET at every call. An GAE
app does not have a dedicated python interpreter running. You have to
store the data in an object in the datastore and retreive it at the
start of the get() or post() call and object.put() it at the end of
the function.
Djidjadji
2008/8/28 Douglas Christian <[EMAIL PROTECTED]>:
>
> I am using the template engine to render a web page that accepts input
> into a web form and stores it an Interest.
>
> The interests are then listed back on the same page.
>
> I have a dict named template_data and I am trying to append the form
> input to the 'interest' key.
>
> {{ interest }} returns [ , , , , ] after 5 input attempts.
>
> I can't figure out why a null value is appended to the interest key of
> the the template_data dict.
>
> The appropriate strings are saved to Interests on form submission.
>
> The code can be seen at http://pastebin.com/m7937bebf
>
> Any suggestions would be appreciated.
>
> Thanks,
>
> Douglas
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---