-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Works fine now :)
Thanks a lot.

- --
Praneeth


On 05/16/2010 02:42 AM, Thadeus Burgess wrote:
> Ah, this is quite a nasty bug to fix :)
> 
> Originally we just looked if the line started with return, however the
> following line of code would then fail...
> 
> {{ if True: return }}
> 
> I sent a patch to Massimo, would you mind testing again when he applies it?
> 
> --
> Thadeus
> 
> 
> 
> 
> 
> On Sat, May 15, 2010 at 3:06 PM, Praneeth <[email protected]> wrote:
> Hello all,
> 
> The lines 291 through 293 of gluon/template.py check for the string
> 'return' in line. This misinterprets the javascript returns present in
> the line as those of python and unindents the next lines in the
> template, Causing a problem when the javascript return is in the python
> if block of the template.
> 
> This broke one of the Sahana-Eden templates :
> 
> http://bazaar.launchpad.net/~lifeeth/sahana-eden/trunk/annotate/head:/views/sahana_scripts_min.html
> -> line 71-81 serve as an example that breaks with the above template.py.
> 
> 
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJL7/NEAAoJENaaLQPAdAyuZNAIAIpAN0u4Ay2Z5Qayebvbz9Hn
i6YslkrpQBPt89zT/V+RUJAoLJt6YRydKPeDEw0VR9vLG8kkOXRrcYTXxseC2yC7
QmqnAUE4JyoSrRJ1yU18CN3DD/AxFulu/YzWaoKE8/zCZ331VVnF09tEmtqrN3lR
CEZDF2AkNJCRXVT2PlsmYA9xxlH+hbweJftf6OjmPWQN4guvGwBd4IbDhXvAmSj8
B3hvumCGLu2EWqfro+0paCczt4TvTFi4c7tcUSMt1AjOJLG5plywMK+zD61S+xz5
7EB+zxf7cAREoALdqgF6NY9/3/ROB73jm9gKhpNjsrxb49HfMORcvyWbr4w4/zA=
=3jOQ
-----END PGP SIGNATURE-----

Reply via email to