strange......but the syntax is odd at best......... did you try with
....args=['orders', row.id] ? On Tuesday, January 28, 2014 1:56:25 PM UTC+1, horridohobbyist wrote: > > I have the following: > > In db.py: > > db.define_table('orders', > Field('buyer_id',db.auth_user,readable=False), > Field('order_date','datetime'), > Field('status')) > > In index.html: > > {{=SQLFORM.grid(db.orders, > maxtextlength=1000, > paginate=20, > sortable=False, > searchable=False, > details=False, > editable=False, > deletable=False, > create=False, > *links=[lambda row: A('view',_href=URL('view_order',args=[db.orders,row.id > <http://row.id>]))],* > csv=False) > }} > > Why is the "links=..." causing the (flash) error message "not authorized"? > I'm able to use "links=..." elsewhere without any problem. > > 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.