I think my question is simpler than appears. Can anyone answer this?

Instead of this:

def find_people_to_add_roles_and_relationships(): # this is the child 
controller that gets called.
    grid = SQLFORM.grid(db.auth_user, links=[dict(header='Add person to 
role',  body=lambda row: A('Assign person to role',_class="btn btn-success 
btn-mini", _href=URL('assign_person_to_role', args=row.id, 
vars=request.vars)))], links_placement = 'left')

I want

def find_people_to_add_roles_and_relationships(): # this is the child 
controller that gets called.
    grid = SQLFORM.grid(db.auth_user, links=[dict(header='Add person to 
role',  body=lambda row: A('Assign person to role',_class="btn btn-success 
btn-mini", return or exit ( args=row.id, vars=request.vars)))], 
links_placement = 'left')

thanks

Alex

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

Reply via email to