or you can write code like:
class Stuff:
get(self,favorites):
do something here.
application = webapp.WSGIApplication(
[(r'^/stuff/favorites/(?P(favorites).*)$', Stuff)],
debug=True)
the url is like :
/stuff/favorites/oatmeal&raisinbran<http://myapp.com/stuff?favorites=oatmeal&raisinbran>
On Tue, Oct 14, 2008 at 11:49 PM, Alex Vartan <[EMAIL PROTECTED]> wrote:
>
> Let's say I redirect a user to the url:
>
> myapp.com/stuff?favorites=oatmeal&raisinbran
>
> I generate the page with a def get(self) method in the Stuff
> RequestHandler class and use self.request.get('favorites').
>
> Then there is a form on the same page (/stuff) which processes some
> additional input ('morestuff') and supplies me with a few other pieces
> of data via post. When I process this using a def post(self) in Stuff,
> I use self.request.get('morestuff').
>
> But can I also access the original 'favorites' in the post method? I
> can't find any documentation about this but perhaps it's because it's
> just obvious. I guess the question is does the self.request object get
> cleared after get(self) finishes generating the page, or are the
> original query params still available to me when I call
> self.request.get in the subsequent post method (is the dictionary of
> key value pairs in the request object replaced, or augmented by post
> data?)
>
> Thanks much,
> Alex
> >
>
--
Stay hungry,Stay foolish.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---