> It's not a horrible idea, but the purpose of Kid (and Genshi) is to > generate well-formed XML. If you allow arbitrary XML, you're basically > undermining that, as you now have a tag soup string. > > The XML function is more of an escape valve than anything else. I > think I might use XML() in one out of every 10 templates or so, if > you're trying to figure out how to format data and are solving it by > passing in formatted strings, you may want to look at py:def
I think maybe what I want to do should really be done with widgets. I'm not quite clear though what the smart way to get a widget updated from an ajax call is. So far I have: - cart is an object that subclasses dict in python and is stored in a cherrypy session var - on product add, an item is added to the cart through the loadJSONdoc() function, in CherryPy the cart gets updated and then sent back to javascript as a json object with all pertinent info in the json dictionary/object thing - the javascript call back gets the new version of the cart and updates the javascript array object accordingly Leaving: - update the the cart display through the DOM somehow. Surely there is an elegant way of doing this if the cart display uses a data grid widget, but I haven't found it yet. And I would like to add some small buttons to the cart display so that probably will mean customizing the widget. Iain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

