Malcolm Tredinnick wrote:
> On Thu, 2007-06-21 at 20:23 -0700, dailer wrote:
> > seems like a very simple example based on
> > http://www.djangoproject.com/documentation/0.96/serialization/:
> >
> > def exportCountryCodeFixture():
> >     from django.core import serializers
> >     from mysite.models import CountryCode
> >
> >     out = open("CountryCode.xml", "w")
> >     serializers.serialize("xml", CountryCode.objects.all(), stream=out
> >
> > causes this error:
> [...]
> > AttributeError: 'file' object has no attribute 'getvalue'
>
> Yes. This was a bug in the 0.96 release. It's been fixed subsequently.
>
> You could grab the contents of django/core/serializers from a recent
> subversion checkout and drop that into your current 0.96 code if you
> didn't want to move entirely up to tracking subversion's trunk. The
> fixes are very self-contained.
>
> Regards,
> Malcolm

thx. Wow. I'm suprised since I'm just learning both python & django I
tend to think "Ok, what dumb thing am I doing now?"


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to