I've just found a stupid programming error of mine. Code:

--------------------------------------------------------------------------------
task_rows = db(db.tasks.ref==request.vars.number).select()
if len(task_rows):
        rows[0].update_record(status = request.vars.new)
--------------------------------------------------------------------------------

At some point, I'd renamed the variable 'rows' to 'task_rows', but
omitted to change the last line quoted above. Blindingly obvious once you
see it, and there are 101 reasons why I shouldn't have made that mistake.

However, it fails in Web2py without any indication. It wasn't until I ran
it under pydb that I saw this:

(Pydb) n
NameError:"global name 'rows' is not defined"

My question: is there any way Web2py can catch and notify me of errors
like that?

Thanks


-- 
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to