memcache ?

On 17 oct, 16:17, adrian <[EMAIL PROTECTED]> wrote:
> A user enters some data in a form, and the Post is processed in one
> request handler, and I sometimes want to be able to read it in another
> request handler.   How do I do that cleanly?
>
> I have tried globals, but it does not work; I suppose because the
> request handlers are called from another module where the globals are
> out of scope.   I could use the datastore but that seems overkill - I
> don't need persistance beyond displaying the next page.
>
> Here's what I want to do in psuedocode:
>
> class OneHandler(webapp.RequestHandler):
>   def post(self):
>       # do more stuff
>        myvar = 'foo'
>       # certain cases redirect to /further, which calls AnotherHandler
>
> class AnotherHandler(webapp.RequestHandler):
>   def post(self):
>       # need to read myvar here
>       access = myvar
>       # use value of myvar to customize html and control JavaScript to
> set focus
>
> application = webapp.WSGIApplication(
>                                 [('/', OneHandler),
>                                 ('/further', AnotherHandler),
>                                 ....
>
> Thanks for your help...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
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