Patrick Lewis wrote:

>You are mixing python and javascript in what should be just a Python
>expression. I see a few things that aren't correct:
>
>- window.location is javascript, and can't be processed server side.
>You could pass cherrypy.request.browser_url in the dictionary to kid to
>get the same information into python.
>
>-The ternary operator ? : isn't valid python.
>
>- I'm not sure if the pk variable is a python or javascript variable.
>
>- Inside the ${}, you can't use the $ to refer to python variables.
>Just use them directly (e.g. row.pk, not ${row.pk})
>
>Just remember that everything inside the ${} will be evaluated as a
>python expression on the server, and you should be ok.
>
>
>
>  
>
thank you, Patrick.

jo

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to