If you set user_signature=False you are giving everybody (and I mean 
everybody) read/write permissions to your database.

On Tuesday, 28 January 2014 11:16:23 UTC-6, horridohobbyist wrote:
>
> Yes, you're right. I had to set user_signature=False. Not that I 
> understand why it's necessary...
>
> Thanks.
>
> On Tuesday, 28 January 2014 10:05:51 UTC-5, Anthony wrote:
>>
>> Probably related to user_signature. Are you accessing the grid function 
>> with extra args in the URL but not passing those args to .grid via the 
>> "args" argument?
>>
>> On Tuesday, January 28, 2014 12:00:29 AM UTC-5, horridohobbyist wrote:
>>>
>>> Oh, sorry, I erred. That's not the problem. Please disregard until I 
>>> investigate further.
>>>
>>>
>>> On Monday, 27 January 2014 23:47:05 UTC-5, horridohobbyist wrote:
>>>>
>>>> I have two tables defined:
>>>>
>>>> db.define_table('orders',
>>>>                 Field('buyer_id',db.auth_user),
>>>>                 Field('order_date','datetime'),
>>>>                 Field('status'))
>>>>
>>>> db.define_table('ordered_items',
>>>>                 Field('order_num','reference orders'),
>>>>                 Field('product_id',db.products))
>>>>
>>>> When I try to display the ordered_items table with this:
>>>>
>>>> {{=SQLFORM.grid(db.ordered_items,
>>>> maxtextlength=1000,
>>>> paginate=10,
>>>> sortable=False,
>>>> searchable=False,
>>>> details=False,
>>>> editable=False,
>>>> deletable=False,
>>>> create=False,
>>>> csv=False)
>>>> }}
>>>>
>>>> ...I get an error message saying "not authorized." What?! Why??? (I 
>>>> have a sneaking suspicion it's related to the 'reference orders' data 
>>>> type.)
>>>>
>>>> And how do I get authorization?
>>>>
>>>> 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.

Reply via email to