Am Freitag, 27. Mai 2016 06:48:31 UTC+2 schrieb Anthony: > > def list_order_type(): > if 'edit' in request.args: > record = db.foobar(request.args(-1, cast=int)) > older_than_an_hour = record.created_on < request.now - datetime. > timedelta(hours=1) > db.foobar.text.writable = not (record.text and older_than_an_hour) > form = SQLFORM.grid(db.foobar) > return dict(form=form) >
Thank you Anthony, this works perfectly. Also thank you Val. Regards, Mike -- 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.