#964: tg-admin sql upgrade is "broken"
--------------------------+-------------------------------------------------
Reporter: bader | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Installation | Version: 0.9a6
Severity: major | Keywords: tgadmin, sqlobject-admin
--------------------------+-------------------------------------------------
I know that is not the normal way to do it but it shouldn't crash by doing
this:
{{{
[EMAIL PROTECTED]:~/projets/Lurker $ tg-admin sql upgrade
Using database URI sqlite:///home/bader/projets/Lurker/devdata.sqlite
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.9a6-
py2.4.egg/turbogears/c
ommand/base.py", line 275, in main
command.run()
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/c
ommand/base.py", line 134, in run
command.the_runner.run(sys.argv)
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1675-
py2.4.egg/sqlo
bject/manager/command.py", line 102, in run
runner.run()
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1675-
py2.4.egg/sqlo
bject/manager/command.py", line 233, in run
self.command()
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1675-
py2.4.egg/sqlo
bject/manager/command.py", line 1063, in command
version_to = os.path.basename(self.find_last_version())
File "/usr/lib/python2.4/posixpath.py", line 112, in basename
return split(p)[1]
File "/usr/lib/python2.4/posixpath.py", line 77, in split
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/964>
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
-~----------~----~----~----~------~----~------~--~---