Hi All,

I am trying to figure out some way to display user name beside showing
email address on my home page!

I am using below code as suggested on app engine docs:

"Hello, " + user.getNickname()

But, above code always prints email address beside printing actual
nick name of user. (I want to print what we usually see when we login
to gmail on top right corner!)

I had a look at api documentation below (python and java)

JAVA:

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/User.html

(Return this user's nickname. The nickname will be a unique, human
readable identifier for this user with respect to this application. It
will be an email address for some users, but not all.)

PYTHON:

http://code.google.com/appengine/docs/python/users/userclass.html

(For Google Accounts users, the nickname is either the "name" portion
of the user's email address if the address is in the same domain as
the application, or the user's full email address otherwise. For
OpenID users, the nickname is the OpenID identifier.)


Both are completely different descriptions.

1. Assuming, JAVA API documentation is correct::

I tried with multiple email address (around 10-20) but all of them
display email addresses not nick name. Does any one have been able to
see the nick name??

2. Assuming, Python API documentation is correct::

How to bring the address is in the same domain as the application??
What do I have to add in my google app engine to make it work??

Any suggestions please!!

Thanks in advance!

Cheers,
Raj


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to