Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-22 Thread Russell Keith-Magee
On 9/20/07, Tomasz Melcer <[EMAIL PROTECTED]> wrote: > > On 19 Wrz, 16:37, Rob J Goedman <[EMAIL PROTECTED]> wrote: > > Tomasz, > > > > The fixture is breaking with ' "2007-09-17 09:17:57.890755", ', after > > revision 6329 it either > > started to add the subseconds or can't read them anymore. No

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-19 Thread Tomasz Melcer
On 19 Wrz, 16:37, Rob J Goedman <[EMAIL PROTECTED]> wrote: > Tomasz, > > The fixture is breaking with ' "2007-09-17 09:17:57.890755", ', after > revision 6329 it either > started to add the subseconds or can't read them anymore. Not sure if > there are more instances > of such a time format. Remov

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-19 Thread Rob J Goedman
Tomasz, The fixture is breaking with ' "2007-09-17 09:17:57.890755", ', after revision 6329 it either started to add the subseconds or can't read them anymore. Not sure if there are more instances of such a time format. Remove the .nn part to fix it. I've been running on r6329 for several

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-19 Thread Tomasz Melcer
On 17 Wrz, 16:57, Tomasz Melcer <[EMAIL PROTECTED]> wrote: > On 17 Wrz, 16:45, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote:> Perhaps I wasn't clear - I need the actual _data_ - that is, your > > model, and a fixture file that can't load. I know how to load a > > fixture - what I don't know i

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Russell Keith-Magee
On 9/17/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: > > Hi Russ, > > Yes, I use Postgres 8.2.3 on Mac OS. Sorry - just to clarify - does this mean you _are_ seeing the problem on Postgres? > I think reverting back to revision 6329 fixes this problem as well. > Date/time stamps are then neatly w

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Rob J Goedman
Hi Russ, Yes, I use Postgres 8.2.3 on Mac OS. I think reverting back to revision 6329 fixes this problem as well. Date/time stamps are then neatly written with just :SS (not as HH:MM:SS.123456). Hope this helps, thank you (and all other developers) for such a great framework! Rob On Sep 17, 2

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Russell Keith-Magee
On 9/17/07, Rob J Goedman <[EMAIL PROTECTED]> wrote: > > This is the same problem as I found earlier and below steps will > reproduce it and with an empty project (no log_entries etc, just 1 > superuser) it is fixed by removing the subseconds. Ok - thanks for that. I can reproduce this problem wi

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Tomasz Melcer
On 17 Wrz, 16:45, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Perhaps I wasn't clear - I need the actual _data_ - that is, your > model, and a fixture file that can't load. I know how to load a > fixture - what I don't know is what fixture contents will make a > fixture fail in the way you

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Russell Keith-Magee
On 9/17/07, Tomasz Melcer <[EMAIL PROTECTED]> wrote: > > On 17 Wrz, 15:16, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: > > We have a fairly extensive unit test suite around serialization > > formats; as a result, I'm not aware of any problems of this sort. > > > > Can you provide a minimal

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Tomasz Melcer
On 17 Wrz, 16:45, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/17/07, Tomasz Melcer <[EMAIL PROTECTED]> wrote: > Perhaps I wasn't clear - I need the actual _data_ - that is, your > model, and a fixture file that can't load. I know how to load a > fixture - what I don't know is what fixt

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Rob J Goedman
This is the same problem as I found earlier and below steps will reproduce it and with an empty project (no log_entries etc, just 1 superuser) it is fixed by removing the subseconds. Regards, Rob On Sep 16, 8:56 pm, Rob J Goedman <[EMAIL PROTECTED]> wrote: > Hi, > > Today's version shows 2 pro

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Tomasz Melcer
On 17 Wrz, 15:16, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > We have a fairly extensive unit test suite around serialization > formats; as a result, I'm not aware of any problems of this sort. > > Can you provide a minimal example that reproduces this problem? i.e., > can you provide an ex

Re: manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Russell Keith-Magee
On 9/17/07, Tomasz Melcer <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to prepare a fixture with testing data. I can export data > from database using: > > ./manage.py dumpdata >initial_data.json > > but when importing the data using: > > ./manage.py syncdb > > I get: > > Loading 'initial

manage.py dumpdata && loaddata -- problem with datetime fields

2007-09-17 Thread Tomasz Melcer
Hello, I am trying to prepare a fixture with testing data. I can export data from database using: ./manage.py dumpdata >initial_data.json but when importing the data using: ./manage.py syncdb I get: Loading 'initial_data' fixtures... Installing json fixture 'initial_data' from absolute path.