On Jan 23, 2008 6:39 AM, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > Russ, > > Thanks for the solution you suggested, I am about to implement it, but > something came to my mind: how would I know if the fixture loading was > successful or failed? I know it writes to the standard error output the > result if I set verbosity higher, but it would be nicer if an exception was > raised.
In that case, you probably want to use the serializer directly. The 'loaddata' command is a pretty simple 'find file and load fixture' wrapper around the core serialization services. The serialization docs, plus the implementation of loaddata (django/core/management/commands/loaddata.py) should give you an idea of what is required. It would be possible to refactor the loaddata command to provide an exception-throwing fixture load service; feel free to have a go at refactoring this code if you want. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

