I got this syntax from an example in the book, I think. At any rate, it
works elsewhere, like I said.
Thanks.
On Tuesday, 28 January 2014 08:33:31 UTC-5, Niphlod wrote:
>
> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.