Gipsy,

No, I want the people who do login to return to this home page. If the
form entry is not empty it would be Ok for them to be sent on "/?
place=<value of place>" but that is more than I expect.

Brian in Atlanta

On Jan 9, 5:57 pm, "Gipsy Gopinathan" <gipsy.ra...@gmail.com> wrote:
> I assume that,your requirement is ,when the user submit the form:
>
> <form method="get" action="/">
>    <input type="text" name="place" id="placename" />
>    <input type="submit" value="Submit short group name" />
>  </form>
>
> You want them to be taken to the login page if they are not already logged
> in ?
>
> If my assumption is correct, then as Geoffrey  said ,check if
> users.get_current_user() is None and if true re-direct to the login url
> generated by users.create_login_url("/") else do the stuff the handler
> suppose to .
>
> On Fri, Jan 9, 2009 at 3:31 PM, thebrianschott <schott.br...@gmail.com>wrote:
>
>
>
>
>
> > I don't quite get it. I hope if by seeing the existing form on the
> > page and my attempt at following your suggestions, you can spell out
> > more specifically what you mean Geoffrey and Gipsy.
>
> > This is the existing form.
> >  <form method="get" action="/">
> >    <input type="text" name="place" id="placename" />
> >    <input type="submit" value="Submit short group name" />
> >  </form>
>
> > Is this what your mean? If not, can you correct it, please?
> > <a href="users.create_login_url("/")"> Sign in or register. </
> > a>                 )
>
> > On Jan 9, 4:00 pm, Geoffrey Spear <geoffsp...@gmail.com> wrote:
> > > You just create an ordinary link using the value returned by
> > > users.create_login_url("/") as the link location, and display the link
> > > only if users.get_current_user() is None.
>
> > [snip]
> > > > On Jan 9, 1:21 pm, "Gipsy Gopinathan" <gipsy.ra...@gmail.com> wrote:
>
> > > > > I guess you can just do a redirect to the url  generated by
> > > > > users.create_login_url("/") from your handler when user clinks on the
> > link
> > > > > in your home page.
>
> > Brian in Atlanta
>
> --
> cheers
> Gipsy
--~--~---------~--~----~------------~-------~--~----~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to