A robot is just a participant of the wave, just like any other human being. The robot is not like any other servlet that is requested by your browser when you click a link or submit a form. So your Robot shouldn't expect to use the User Service.
What I was doing on the other hand, is use an app-engine servlet, to serve as the url for a gadget, which I thought would be loaded from my browser. But I guess that too, is requested by Google Wave. So it doesn't have any visibility to the browser's cookies, which means that it can't use the UserService. Zac's idea is great. Getting the current participant's identity that way works for what I want to do. But what does it _not_ work for? On Sep 14, 4:02 am, Daniel Faust <[email protected]> wrote: > I just hit the same problem yesterday. I was trying to associate a > button press of a FormElement to a user by using the Users Service in > the OnFormButtonClicked handler. > > One thing I'm unable to understand is why the following scenario does > not work: > > I have two tabs open in the browser. > > - In one tab I am logged in into my appspot application which is open > for registrations with google accounts, and the HTTP request handlers > associate the requests correctly to the user. > > - In the other tab I'm logged into Google Wave, and my robot, which is > the same appspot application as in the other tab to which the > gmail.com user is logged in, is supposed to associate the users object > to the gmail.com user who is logged in in the other tab. But to no > avail, the users object always returns None. > > Is this a general restriction? If wavesandbox.com get's transferred to > google.com on September 30, will that limitation be gone? > > Initially I expected that the user object would contain > "[email protected]", the name, and some id. Since this failed, I > tried to force the user object to a google account by having the user > log into the robot via the web interface with his google account. But > this also failed. > > Regards, > Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" 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-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
