RE: adobe flex; return xml via turbogears/django

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sells, Fred

    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("thexml template")
    def ...
    return dict(root=myEle mentTreeRoot)
    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.

  • Diez B. Roggisch

    #2
    Re: adobe flex; return xml via turbogears/django

    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("thexm ltemplate")
    >def ...
    > return dict(root=myEle mentTreeRoot)
    >>
    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.


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

    Diez

    Comment

    Working...