Re: [web2py] Re: Debugging view template logic

2010-08-02 Thread Michael Ellis
Agreed. That's why I said "some indication". I can think of a couple of things that might be helpful: 1. If the nesting level returns to 0 at any point in the file, the missing pass statement must be afterwards. If that's the case, the error message could say "missing pass statement after line 2

Re: [web2py] Re: Debugging view template logic

2010-08-02 Thread Thadeus Burgess
Its not a matter of easy, but more a matter of it even being a possibility. There is no way to know where you intended to place the pass statement. -- Thadeus On Mon, Aug 2, 2010 at 11:47 AM, Michael Ellis wrote: > Ok, think I know what was going on: > 1. I did have a missing pass statement

Re: [web2py] Re: Debugging view template logic

2010-08-02 Thread Michael Ellis
Ok, think I know what was going on: 1. I did have a missing pass statement 2. I had not restarted web2py after updating from tip this morning. It's probably not fair to expect web2py to show the correct errors after repairing the engine while the motor's still running :-} So I immediately got th

Re: [web2py] Re: Debugging view template logic

2010-08-02 Thread Thadeus Burgess
I seriously doubt it. I guarantee you it is just a fluke probably having to do with your setup. -- Thadeus On Mon, Aug 2, 2010 at 11:21 AM, Michael Ellis wrote: > I'm pretty sure it does because I've fixed several instances during > the past two days  by correcting pass statements.   I'll t

Re: [web2py] Re: Debugging view template logic

2010-08-02 Thread Jonathan Lundell
On Aug 2, 2010, at 9:21 AM, Michael Ellis wrote: > I'm pretty sure it does because I've fixed several instances during > the past two days by correcting pass statements. I'll try to create > a minimal example to post here. That would be good. Whatever it is, it's leading to rocket seeing an em

[web2py] Re: Debugging view template logic

2010-08-02 Thread Michael Ellis
I'm pretty sure it does because I've fixed several instances during the past two days by correcting pass statements. I'll try to create a minimal example to post here. On Aug 2, 12:13 pm, Thadeus Burgess wrote: > The template system actually emits an error that says "Missing pass in > view" or