without user_signature=False you can't edit record if the user isn't logged 
in.
Anyway you don't need to fiddle with jquery: just render a hidden button 
with the link and the signature and then just use that as a reference to 
trigger the navigation to the edit form when the user clicks on the table 
row. 

On Tuesday, October 27, 2015 at 11:10:58 AM UTC+1, Julian Sanchez wrote:
>
> Yes, that's what I was generating via jQuery but I (wrongfully) thought 
> that if the _signature argument was missing I would get an error message. 
>  But looks like if you have a user logged in the lack of _signature in the 
> querystring doesn't trigger an error even if you don't specify 
> 'user_signature=False' in the SQLFORM.grid() call.  Learned something new :)
>
> Cheers,
> Julian
>
> On Monday, October 26, 2015 at 4:02:46 AM UTC-5, Niphlod wrote:
>>
>> the edit link isn't that hard to rebuild .......
>>
>> /edit/tablename/record_id
>>
>>
>>
>> On Saturday, October 24, 2015 at 1:02:31 PM UTC+2, Julian Sanchez wrote:
>>>
>>> Is there an easy way to trigger the same URL you get when pressing the 
>>> built-in 'edit' button of the SQLFORM.grid without having to show that 
>>> button?  I have a few grids that would show cleaner if users could go 
>>> directly to the edit page by clicking on the row itself (no need to view 
>>> details).  I can do some jQuery stuff for that but I lose the '_signature' 
>>> argument.  I could disable it but I would rather keep it for added security.
>>>
>>

-- 
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/d/optout.

Reply via email to