Howdy!
Running 0.9a1 my CMS works fine in 'setup.py develop' mode, allowing me to
create a site with a sitetemplate and start adding content. Brilliant. But
after upgrading to 0.9a4 and updating the occasional moved function
(turbogears.jsonify to turbojson.jsonify, for example), I can no longer even
run tg-admin, as it bombs with the following traceback:
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 7, in ?
sys.exit(
File
"/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 236, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 2097, in load_entry_point
return ep.load()
File
"/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 1830, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a4-py2.4.egg/turbogears/__init__.py",
line 18, in ?
ext = entrypoint.load()
File
"/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 1830, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/home/mbevan/Projects/TG-Content/content/__init__.py", line 76, in ?
startup()
File "/home/mbevan/Projects/TG-Content/content/startup.py", line 31, in
startup
module = component.load()
File
"/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 1830, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/home/mbevan/Projects/TG-Content/content/components/__init__.py", line
10, in ?
import model
File "/home/mbevan/Projects/TG-Content/content/components/model.py", line 41,
in ?
class Page(Atom):
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/declarative.py",
line 108, in __new__
cls.__classinit__(cls, new_attrs)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/main.py",
line 748, in __classinit__
if not connection and not getattr(cls, '_connection', None):
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a4-py2.4.egg/turbogears/database.py",
line 148, in __get__
self.set_hub()
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a4-py2.4.egg/turbogears/database.py",
line 166, in set_hub
raise KeyError, "No database configuration found!"
KeyError: 'No database configuration found!'
I've uploaded a WIP copy of my CMS at the following URL:
1.1MB http://www.gothcandy.com/tg-content/releases/TG-Content-0.9a4.tar.bz2
Previousally if the DB connection didn't exist, it just silently ignored
everything. (While working perfectly fine on a properly set up tg-admin
shell.) Why has this changed? Any difference in SVN?
- Matthew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---