By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,932 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,932 IT Pros & Developers. It's quick & easy.

RE: adobe flex; return xml via turbogears/django

P: n/a
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 <divand anything outside it. I'll be doing a flex style ajax call and it wants just the xml data tree.

Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sells, Fred schrieb:
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 <divand anything outside it. I'll be doing a flex style ajax call and it wants just the xml data tree.
http://www.kid-templating.org/langua...-tags-py-strip

The time it took to ask the question would have answered it by just
trying...

Diez

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.