The GET parameters will not be sent automatically with your POST
(form) parameters.
However, here is something you can try:
When you generate your page template, embed the original GET
parameters as hidden input fields inside the form:
<input type="hidden" name="favorites" value="oatmeal&raisinbran" />
Now, when the form is POSTed, you'll get your original "favorites"
input.
-Mahmoud
On Oct 14, 11:49 am, 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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---