On Jul 24, 2009, at 12:50 PM, Yarko Tymciurak wrote:

>
> On Fri, Jul 24, 2009 at 12:13 PM, Jonathan Lundell  
> <[email protected]> wrote:
>
> On Jul 24, 2009, at 10:06 AM, dlypka wrote:
>
> >
> > I believe they are allowed.
> > I wrote one very long line that had a for loop and lot of statements
> > separated by ;
> > But the ; should only be used for multiple statements all on the  
> same
> > physical source line.
>
> What I ran into, I think, is that the 'pass' regex in template.py
> doesn't see a 'something; pass'. That's an oversimplification, I'm  
> sure.
>
> Since pass in web2py template is used to disambiguate indentation,  
> it's not being recognized in this context would seem irrelevant -  
> e.g. if I have
>
> {{if foo:  bar;}}
>
> no ambiguity
>
> {{if foo: bar1; bar2;}}
>
> above is invalid python syntax;
>
> bar1(); bar2();
>
> above is ok python syntax;
>
> bar1(); bar2(); pass;
>
> previous 2 python lines are equivalent, e.g. ignoring pass is same,  
> as pass is usesless here - either in python, or in web2py template  
> code.
>
> Does that help?

I'm sure I'm just confused, but I'll figure it out.

Part of the problem was that whatever I was doing was just silently  
failing (or at least I didn't see any error messages).

And a second confusion was that the text editor window got into some  
mode in which it was pretending to save, but not really doing it.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to