Looks like you have broken up your string into multiple lines without using
the line continuation character ("\"). Should be:
chartoptions = "{type: 'bar', barColor: 'green', 'chartRangeMin':\
Anthony
On Friday, April 19, 2013 9:11:16 PM UTC-4, greaneym wrote:
>
> In trying the sparklines slice, I am getting an error. Using osx with
> web2py v2.3.2,
>
> here is the error:
> <type 'exceptions.SyntaxError'> EOL while scanning single-quoted string
> (index.html, line 83)VERSIONweb2py™(2, 3, 2, datetime.datetime(2012, 12,
> 17, 15, 3, 30), 'stable')PythonPython 2.5.1:
> /Applications/web2py/web2py.app/Contents/MacOS/pythonTRACEBACK
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
>
> Traceback (most recent call last):
> File "gluon/restricted.py", line 211, in restricted
> File "gluon/restricted.py", line 194, in compile2
> File
> "/Applications/web2py/web2py.app/Contents/Resources/applications/spls/views/default/index.html",
> line 83
> chartoptions = "{type: 'bar', barColor: 'green', 'chartRangeMin':
> ^
> SyntaxError: EOL while scanning single-quoted string
>
>
> I did put the XML in the view, here is that part shown,
>
> snip--
>
>
> {{for n in xrange(ngraphs):}}
> $("#dynbar{{=n}}").sparkline(data.dynbar{{=n}},
> {{=XML(chartoptions)}});
> {{pass}}
>
> snip--
>
> How do I fix this please? thank you
>
>
> Margaret
>
--
---
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/groups/opt_out.