adobe flex; return xml via turbogears/django

Sells, Fred fred.sells at adventistcare.org
Thu May 29 14:01:41 EDT 2008


Diez wrote: 
> Why don't you create KID-template like this:
> 
> <div py:strip="True">${root}</div>
> 
> and in the controller say
> 
> @expose("thexmltemplate")
> def ...
>    return dict(root=myElementTreeRoot)
> 
sounds good.  Does that "py:strip" remove the <div> and anything outside it.  I'll be doing a flex style ajax call and it wants just the xml data tree.




More information about the Python-list mailing list