Good question. According to the dumpdata docs, the available formats are here:

http://docs.djangoproject.com/en/1.2/topics/serialization/#serialization-formats

And 'python' does indeed show in that list. However, that page does
mention that the 'python' version serves as a base for other formats
and isn't really useful on its own. So maybe that's why it's not
supported in dumpdata.

Is there any reason you'd want it dumped as Python objects? It seems
that it really would be very difficult to work with in that state, if
you consider the "document" format you get from JSON or XML versus a
pile of lists and dictionaries. Plus, as far as I can tell, the only
purpose of dumpdata is to later run loaddata or use the files as test
fixtures.

Also, read the whole page of the link above (not just the anchor
provided), and see if Django's serialization (via the serialize and
deserialize methods) will allow you to manipulate the data for your
purposes.

Shawn

-- 
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