ok, nobody respond, so I try to add some news... I did restart all and create a new project:
tg-admin quickstart --sqlalchemy responding yes for the identity management. then I create the standard sqlite db: tg-admin sql create and I add a user, a group and put the user in the group, using sqlite browser If I go in the http://localhost:8080/ url I can see the welcome interface. If I now try to protect the welcome interface uncommenting the standard line @identity.require(identity.in_group("admin")) when I go to the http://localhost:8080/ url I see the login interface, and just now all is correct! But if I login I recive always the same error message. Exactely like with dbmechanic. And if I reload the url I can see the welcome interface with in the hight right corner the "Welcome admin. Logout". So the login process is ok but TG do'nt redirect correctly me to the requested page. The problem is not in dbmechanic! The problem is in Turbogears! Could be only with sqlalchemy, that is the only non standard component of my configuration. I hope to be in error. Help me please! Best regards Enrico Secco On 21 Ott, 11:38, enrico secco <[EMAIL PROTECTED]> wrote: > Hi People, > > I'm tryng to usedbmechaniclike administration interface and I try to > authorize only the users in 'administrators' group to access to > /dbmechanicurl. > My configuration is: > turbogears version: 1.07 > sqlalchemy version:0.5.0rc1 > toscawidgets.on = True > tg.defaultview = 'genshi' > > Than, after the usual configuration ofdbmechanic, that run without > authorizations, I add: > > dbmechanic= identity.SecureObject(dbmechanic, > identity.in_group('administrators')) > > So, when I try to access the /dbmechanicurl 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 /dbmechanicurl 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 -~----------~----~----~----~------~----~------~--~---

