[web2py] Virtual Fields in auth_user?

2014-07-09 Thread Fabiano Almeida
Hi again,

It's possible insert virtual field in auth_user? how?

thanks,

Fabiano.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Virtual Fields on auth_user

2011-04-23 Thread Gregory Hellings
I have a virtual field attached to the auth_user table titled name
that renders the user's name with certain formatting based on auth
membership.  I also have records in a second table that are linked to
the auth_user table.  When I fetch these rows I can access the virtual
as expected:

row.speaker.name

However, when I access the auth.user variable to determine the
current user, it lacks the appropriate virtual field.  Thus calling
auth.user.name returns the string '0' (when it is JSON-ified)
instead of the user's name with formatting.

I'm supposing that the framework does not bind the virtual fields
until after the auth object has been initialized, since they are
declared in my db_auth.py file after the auth object is instantiated.
Is this missing virtual field intended behavior, a documented problem
that is a shortcoming of needing to declare the auth object before
binding the virtual fields, or a bug?

--Greg