maybe to explain better.
I have created a filed username that shows the preference of the user be it
an alias name or the actual Facebook name.
However when i want to display it as:
def author(id):
if id is None:
return "Unknown"
else:
user = db.auth_user(id)
return A('%(username)s' % user
i get the username as numbers which is the default username of Facebook.
How can i overide this username.
if i use another field, the field is not recognised and all i get is a
blank name.
Please help
On Friday, 20 February 2015 12:14:43 UTC+2, niki wrote:
>
> hi,
>
> I have an app that allows people to login in using their Facebook
> credentials.
> However i want them to be able to choose if they want to use their real
> Facebook names or just alias names.
> can somebody break it down for me how i would go about achieving this.
>
> Thanks
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.