468,306 Members | 1,419 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

RE: adobe flex; return xml via turbogears/django

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
1 1083
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.

Similar topics

reply views Thread by Vincent Delporte | last post: by
42 posts views Thread by kenneth.m.mcdonald | last post: by
5 posts views Thread by ASP.NET explorer | last post: by
10 posts views Thread by Jules Winfield | last post: by
1 post views Thread by Sells, Fred | last post: by
1 post views Thread by Kirk Strauser | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.