deletable = False
if 'edit' in request.args:
    record = db[table](request.args[-1])
    if some condition of record:
        deletable = True
grid = SQLFORM.grid(db[table], deletable = deletable)


On Sunday, April 14, 2013 3:12:31 PM UTC-4, Dan wrote:
>
> Mark Kirkwood <mark.kirkwood@...> writes: 
>
> > 
> > 
> >     I've worked around this by tackling the issue a different way: 
> >     - disable the delete button on the grid altogether with 
> >     deletable=False 
> >     - selectively enable it in edit mode for records that are 
> >     safe/appropriate to delete 
>
> How did you do that? I'm experiencing the same problem! 
>
>

-- 

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


Reply via email to