When I set lazy_tables=True in the DAL, all my signatures fields show the 
user_id and not the user name.

I also set db.auth_user._format = '%(last_name)s' which I thought would 
force the auth_user definition with lazy tables but my signatures still 
show id's.

Any thoughts on what I'm missing?

Also, if I use lazy_tables=False and still set db.auth_user._format = 
'%(last_name)s' the created_by and modified_by fields in view forms still 
shows the full name which I can override 
with auth.signature.created_by.represent = lambda id: db.auth_user._format 
% db.auth_user[id].  Is that the best way?

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

Reply via email to