I have a field in a grid where i need to translate a user id to a full 
name, which is a concatenation of the first,last name from the auth_users 
table

def id_to_fullname( id , row ):
  id = row[ db.t_user_project.f_user_id ]
  r2 = db.auth_user[ id ]
  return r2.first_name + ' ' + r2.last_name 

db.t_user_project.f_user_id.represent = id_to_fullname

It works fine when i'm at the grid view or the individual item view.  But 
when i go to 'edit' it seems represent is no longer respected. 

Is this a known behavior?  A bug?  Am i doing something wrong?  I'd 
appreciate any help!!!
 

-- 

--- 
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/groups/opt_out.


Reply via email to