#1026: tg-admin toolbox doesn't work outside a project's dir
---------------------+------------------------------------------------------
Reporter: alberto | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.0b1
Component: Toolbox | Version: 0.9a6
Severity: normal | Keywords:
---------------------+------------------------------------------------------
When launched outside a project's dir. it barfs with:
{{{
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line
103, in _run
applyFilters('before_main')
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/__init__.py",
line 151, in applyFilters
method()
File "/Users/alberto/src/turbogears/turbogears/visit/api.py", line 144,
in before_main
visit= _manager.new_visit_with_key( visit_key )
File "/Users/alberto/src/turbogears/turbogears/visit/sovisit.py", line
43, in new_visit_with_key
hub.begin()
File "/Users/alberto/src/turbogears/turbogears/database.py", line 181,
in __getattr__
self.set_hub()
File "/Users/alberto/src/turbogears/turbogears/database.py", line 189,
in set_hub
raise KeyError, "No database configuration found!"
KeyError: 'No database configuration found!'
}}}
This is rather inconvenient when all you need is to preview widgets in the
browser. I guess it's related to [1615] since the toolbox is now secured
using identity. BTW, why?? I think IP based security was enough as the
toolbox is only needed during development. Catwalk can always be protected
with {{{SecureObject}}} if needed on production IMO.
Alberto
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1026>
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
-~----------~----~----~----~------~----~------~--~---