On Jan 20, 2006, at 5:27 PM, Michele Cella wrote:
Setting the db uri (and at this point I would add executing tg-admin
sql create) usually to your project dir is the step I hate.
To address Jorge concerns, I would propose to not make SQLite a
dependency (no problem for me anyway).
Maybe we can try to import pysqlite and if we don't get an
exception we
can ask something like:
"Do you want turbogears to prepare a SQLite database for your project?
[Yes]"
Yes, give me a db ready to go.
Running tg-admin sql create doesn't do anything unless there's
something in your model. Adding a tg-admin sql create button and/or
checkbox next to "Write model" would be a nice addition to
ModelDesigner though.
There's no need to ask the question -- it should just put a SQLite DB
URI in there (if pysqlite is installed). It won't create the DB
until it needs to, and creating a SQLite DB is better than an error.
If you have a need to manually specify a DB URI, you'd simply just
comment out or change that line.
-bob