%s is part of the "old" string formatting options http://docs.python.org/tutorial/inputoutput.html#old-string-formatting
for python 2.7 or newer there are fancier formatting options http://docs.python.org/tutorial/inputoutput.html#fancier-output-formatting On Mar 25, 8:18 am, Kenneth Lundström <[email protected]> wrote: > Thank You, > > now I understand what that %s does. Have been using it for maybe twp > years without understanding, just coping it from examples. > > Kenneth > > > > > > > > > > > On Mar 24, 4:41 pm, Kenneth Lundstr m<[email protected]> > > wrote: > >> > I am guessing you mean a Python variable > > >> Right > > >> > so maybe: > >> > _onmouseover="displayText('info', {{=watchers[check_date]}} )", > > >> But I m building the table in the controller so I guess I can t use > >> {{= }} ? > > In that case: > > _onmouseover="displayText('info', %s)" %watchers[check_date], > > >> Kenneth > > >>>> It is the watchers[check_date] that holds the text that should be sent > >>>> to the javascript but nothing is sent. > >>>> I have verified that the variable contains text and if I define > >>>> _onmouseover="displayText('info', 'test_text')", > >>>> it works. > >>>> Kenneth

