I just quickstarted a new 0.96a application on Windows, and saw the
"simple default" dburi setting in dev.cfg:

----
# If you have sqlite, here's a simple default to get you started
# in development
sqlobject.dburi="sqlite://%(current_dir_uri)s/devdata.sqlite"
----

This is a great idea, but it doesn't seem to work.  tg-admin sql
create gives a traceback:

----
Using database URI sqlite:///C:\src\battlemorphs/devdata.sqlite
Traceback (most recent call last):
[...]
  File "c:\python24\lib\site-packages\sqlobject-0.7.1dev_r1457-py2.4.egg\sqlobje
ct\sqlite\sqliteconnection.py", line 61, in __init__
    self._conn = sqlite.connect(self.filename, **opts)
pysqlite2.dbapi2.OperationalError: unable to open database file
----

I also see that the example URI for SQLite on Windows now includes a
colon, rather than a pipe character:

# for Windows users, sqlite URIs look like:
# sqlobject.dburi="sqlite:///drive_letter:/path/to/file"

It used to be "sqlite:///drive_letter|/path/to/file", and sure enough,
if I "fix" the URI that the simple default sets to use the pipe
character, all is well.

Is this a recent change for SQLObject or pySQLite?  If so, is there a
new dependency that I'm missing and didn't get installed with TG?

Thanks.
-- 
Tim Lesher <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to