that was my first atempt but i got
Traceback (most recent call last):
File "/home/ramstein74/webapps/new2py/web2py/gluon/restricted.py",
line 226, in restricted
ccode = compile2(code, layer)
File "/home/ramstein74/webapps/new2py/web2py/gluon/restricted.py",
line 209, in compile2
return compile(code.rstrip().replace('\r\n', '\n') + '\n', layer, 'exec')
File
"/home/ramstein74/webapps/new2py/web2py/applications/fileit/views/default/user.html",
line 320
,_id=x["kpi"],_onclick="web2py_component('{{=URL("kpi", x["kpi"]+".load"))
^
SyntaxError: invalid syntax
2016-12-06 19:16 GMT+00:00 Dave S <[email protected]>:
>
>
> On Tuesday, December 6, 2016 at 9:17:12 AM UTC-8, Ramos wrote:
>>
>> I have an error in the next code and cant see the problem.
>> I would appreciate some help here.
>> thanks
>>
>>
>>
> Isn't your _onclick using the same quote (') for the middle-ish string and
> the inner string it encloses?
>
> /dps
>
>
>
>> {{for x in kpi:}}
>> {{=DIV(DIV(H3("???"),P(x["waiting"]),_class="inner"),DIV(I(_class="fa
>> fa-hourglass-end"),_class="icon"),A(T("Please
>> wait..."),_class="small-box-footer"),_class="small-box bg-red"
>> ,_id=x["kpi"],_onclick="web2py_component('{{=URL('kpi',
>> x['kpi']+'.load')}}', target='{{=x['kpi']}}')")}}
>> {{pass}}
>> {{pass}}
>>
>>
>>
>> Traceback (most recent call last):
>> File "/home/ramstein74/webapps/new2py/web2py/gluon/restricted.py", line
>> 226, in restricted
>> ccode = compile2(code, layer)
>> File "/home/ramstein74/webapps/new2py/web2py/gluon/restricted.py", line
>> 209, in compile2
>> return compile(code.rstrip().replace('\r\n', '\n') + '\n', layer, 'exec')
>> File
>> "/home/ramstein74/webapps/new2py/web2py/applications/fileit/views/entities/list.html",
>> line 379
>> ,_id=x["kpi"],_onclick="web2py_component('{{=URL('kpi',
>> x['kpi']+'.load'))
>>
>> ^
>> SyntaxError: EOL while scanning string literal
>>
>> --
> 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.
>
--
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.