#702: Prepending notrans_ causes tg-admin sql create to fail
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: SQLObject | Version: 0.9a1
Severity: major | Keywords:
-----------------------+----------------------------------------------------
I've enabled notrans_ on an SQLite database, the system itself works fine
but tg-admin sql create fails with the exception:
{{{
$ tg-admin sql create
Using database URI notrans_sqlite:///tmp/dev.db?debug=1
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a1-
py2.4.egg/turbogears/command/base.py", line 270, in main
command.run()
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a1-
py2.4.egg/turbogears/command/base.py", line 129, in run
command.the_runner.run(sys.argv)
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-
py2.4.egg/sqlobject/manager/command.py", line 102, in run
runner.run()
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-
py2.4.egg/sqlobject/manager/command.py", line 233, in run
self.command()
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-
py2.4.egg/sqlobject/manager/command.py", line 542, in command
for soClass in self.classes(require_some=True):
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-
py2.4.egg/sqlobject/manager/command.py", line 255, in classes
conn = self.connection()
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-
py2.4.egg/sqlobject/manager/command.py", line 316, in connection
return sqlobject.connectionForURI(self.options.connection_uri)
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-
py2.4.egg/sqlobject/dbconnection.py", line 918, in connectionForURI
assert self.schemeBuilders.has_key(scheme), (
AssertionError: No SQLObject driver exists for notrans_sqlite (only
sqlite, sapdb, postgresql, firebird, maxdb, sybase, interbase, psycopg,
mysql, mssql, postgres)
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/702>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---