Thanks, Peter, this is what i want.

Now the question is how to customize django to use 'allow_unicode=True' and
'default_flow_style=False'?

I found quick and dirty solution.
in Django-1.1.1-py2.5.egg/django/core/serializers/pyyaml.py

i changed a little:

    def end_serialization(self):
        self.options.pop('stream', None)
        self.options.pop('fields', None)
        yaml.dump(self.objects, self.stream, Dumper=DjangoSafeDumper*,
allow_unicode=True,* **self.options)

Now it dump readable data.

How can customize django yaml serializer?

-- 
Regards, Andrey

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to