Re: Declarative fixtures for django

2009-03-08 Thread Ludvig Ericson
On Mar 8, 2009, at 19:01, Ben Ford wrote: > class app__Model(DataSet): > class generic_instance: > field_one = ... > lots of other generic fields here > > class another_instance(generic_instance): > different_field = ... > other_overridden_field = ...

Re: Declarative fixtures for django

2009-03-08 Thread Ben Ford
Hi Malcolm This is one of those cases where I have to ask why you're using a class > instead of a dictionary. You're mapping keys (initialisation parameters) > to values (the values to set the parameters to). Using a map object > seems like the way to go. It doesn't carry the necessary

Re: Declarative fixtures for django

2009-03-08 Thread Malcolm Tredinnick
Hey Ben, I don't have a lot (well, any) time to really give this the attention it deserves at the moment. But a couple of quick thoughts so that you don't think it's been entirely overlooked. I agree with the general thrust of what you're talking about and it's good to see questions about

Declarative fixtures for django

2009-03-06 Thread Ben Ford
Hi All, I'd like to introduce a little project I've been working on with Kumar McMillan of farmdev.com. He's the author of the fixturelibrary which allows a declarative approach to writing database fixtures. I've written django support for it so that you can