I think we need to see more of the surrounding context in the view. The 
error appears to be related to string formatting, and somehow it is 
treating that entire line (including the template delimiters) as Python 
code.

Anthony

On Monday, July 27, 2015 at 1:14:08 PM UTC-4, [email protected] 
wrote:
>
> in main view:
> {{=A(TAG.i(_class='fa fa-search', _style='width:100px;'),
>                     _id = 'go',
>                     _onclick='ajax("'+URL('where', 'list')+'", ["addr"], 
> "tag");$(this).addClass("disabled").children("i").removeClass("fa-search").addClass("fa-refresh
>  
> fa-spin");',
>                     _class='button ll-blue-bgc center',
>                     )}}
>
> ajax view has
>
> {{odd=False}}
> then:
> {{odd = not odd}}
>
> if ajax call is clicked rapidly - it  error raised:
>
> list.htmlValueError: Invalid conversion specification 
> <http://127.0.0.1:8000/admin/errors/ipay3#>+ details 
> <http://127.0.0.1:8000/admin/ticket/ipay3/109.235.187.69.2015-07-27.20-05-50.496e8bf6-b724-4713-a6a4-c40ee8bff2c8>
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
>
> Traceback (most recent call last):
>   File "C:\web2py-m\gluon\restricted.py", line 227, in restricted
>     exec ccode in environment
>   File "C:\web2py-m\applications\ipay3\views\where/list.html", line 53, in 
> <module>
>     {{odd = not odd}}
> ValueError: Invalid conversion specification
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to