On Thu, Jan 8, 2009 at 6:05 AM, thebrianschott wrote:
> Using logging.info() I have determined that the appspot is always
> return None for "user=users.get_current_user()" and that is why the
> app is working differently at appspot that locally. I have tried to
> make this a single "transaction" to allow the value of user to be
> determined in a timely way, but either I am doing it wrong, or it does
> not work. Please advise.

you don't need a transaction for that. actually, it seems that you got
completely wrong what transactions are for.

what you need is to add a link so that users can login and then, after
login, you will be able to get the current user inside your app.

in your app:

    template_values = {}
    template_values['login_url'] = users.get_login_url()

in your template:

    <a href="{{ login_url }}">login here, buddy!</a>

that's it, simple as that.

-- rodrigo

--~--~---------~--~----~------------~-------~--~----~
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