If you look at
http://groups.google.com/group/turbogears/browse_thread/thread/745a135321347e0a/6c4f526a4a763146?hl=en#6c4f526a4a763146

You will find another approach, I created a renderer that turns the
dictionary into XML. bit crude as posted but this allows you to select
json or xml



On Apr 15, 3:43 pm, "Diez B. Roggisch" <[email protected]> wrote:
> On Wednesday 15 April 2009 16:15:37 rajasekhar911 wrote:
>
> > Hi
> > Thanks for the quick reply.
> > My Xml format is like this ...
> > <Info>
> > <InfoNode NAME="Node1" TYPE="type"/>
> > <InfoNode NAME="Node2" TYPE="type"/>
> > <InfoNode NAME="Node3" TYPE="type" >
> > </Info>
> > I have this as a string variable.
>
> > I just want to pass this back as the response so that i can handle
> > this with my ajax call as responseXML.
>
> > when i call response.set_header it gives an error
> > AttributeError: 'function' object has no attribute 'set_header'
>
> Please read my post carefully - it was just a mockup. The actual method might
> be called differently, you can look that up in the documentation, or through
> a debugger.
>
> Diez
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to