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 <[email protected]>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 <[email protected]> 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" <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---