[web2py] Re: Perform checks before showing a form to the user

2013-09-24 Thread Andreas Wienes
Awesome and so beautiful. Thank you so much! Am Dienstag, 24. September 2013 21:39:35 UTC+2 schrieb Massimo Di Pierro: > > perhaps this way: > > project = db.project(request.args(0,cast=int)) > step = db.project_step(request.args(1,cast=int)) > > if not project: > url = URL('de

[web2py] Re: Perform checks before showing a form to the user

2013-09-24 Thread Massimo Di Pierro
perhaps this way: project = db.project(request.args(0,cast=int)) step = db.project_step(request.args(1,cast=int)) if not project: url = URL('default', 'index') elif auth.user_id != project.created_by or not step: url = URL('project', 'show', args=request.args(0)