Hi People,
I'm tryng to use dbmechanic like administration interface and I try to
authorize only the users in 'administrators' group to access to /
dbmechanic url.
My configuration is:
turbogears version: 1.07
sqlalchemy version:0.5.0rc1
toscawidgets.on = True
tg.defaultview = 'genshi'
Than, after the usual configuration of dbmechanic, that run without
authorizations, I add:
dbmechanic = identity.SecureObject(dbmechanic,
identity.in_group('administrators'))
So, when I try to access the /dbmechanic url I obtain correctly the
login page.
But after tape the login username and password I obtain the message:
"""
500 Internal error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
Page handler: <function _wrapper at 0x9200fb4>
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/
cherrypy/_cphttptools.py", line 121, in _run
self.main()
File "/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/
cherrypy/_cphttptools.py", line 264, in main
body = page_handler(*virtual_path, **self.params)
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.7-py2.5.egg/
turbogears/identity/conditions.py", line 241, in _wrapper
return fn(*args, **kw)
File "<string>", line 3, in index
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.7-py2.5.egg/
turbogears/controllers.py", line 360, in expose
*args, **kw)
File "<string>", line 5, in run_with_transaction
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.7-py2.5.egg/
turbogears/database.py", line 407, in sa_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.7-py2.5.egg/
turbogears/controllers.py", line 373, in <lambda>
mapping, fragment, args, kw)))
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.7-py2.5.egg/
turbogears/controllers.py", line 410, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.7-py2.5.egg/
turbogears/errorhandling.py", line 77, in try_call
return func(self, *args, **kw)
TypeError: index() got an unexpected keyword argument 'forward_url'
"""
Than if I recharge the /dbmechanic url I see the page correctly and I
can administer my data.
I did search if other people did obtain the same issue but I did'nt
find nothing about.
Thank for any help.
Enrico
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---