Re: Serialization with file output

2007-05-22 Thread Ramashish Baranwal
Malcolm Tredinnick wrote: > > I am trying to serialize some model data with the output going to a > > file. I am doing it the way its suggested in the documentation. > > > > XMLSerializer = serializers.get_serializer("xml") > > xml_serializer = XMLSerializer() > > out = open("file.xml", "w") > > x

Re: Serialization with file output

2007-05-22 Thread Malcolm Tredinnick
On Wed, 2007-05-23 at 03:51 +, Ramashish Baranwal wrote: > Hi, > > I am trying to serialize some model data with the output going to a > file. I am doing it the way its suggested in the documentation. > > XMLSerializer = serializers.get_serializer("xml") > xml_serializer = XMLSerializer() >

Serialization with file output

2007-05-22 Thread Ramashish Baranwal
Hi, I am trying to serialize some model data with the output going to a file. I am doing it the way its suggested in the documentation. XMLSerializer = serializers.get_serializer("xml") xml_serializer = XMLSerializer() out = open("file.xml", "w") xml_serializer.serialize(SomeModel.objects.all(),