xtian wrote:
I've been playing around with my data model, making changes to the
structure, dropping and recreating tables, and I've found it handy to
be able to run an initial data script in the context of the model
classes.

I've actually meant to include this functionality in sqlobject-admin, if you are interested in making the change there. It would be a setting in sqlobject.txt, maybe like "db_init_func = module:var", which would tell SQLObject to run that function (probably with no arguments) after the tables were created. A "db_init_test_func" might be a nice compliment, which would run after db_init_func and insert test fixture data.

--
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org

Reply via email to