Hi all, I am trying to use impersonate but so far I got always the ticket shown below. The user was logged in and its group has the permission to impersonate all users; I am using a custom auth table with web2py trunk
Function: @auth.requires_login() def impersonate(): r = auth.impersonate() return response.render('admin/imp.html', dict(form=r)) Ticket: 2012-06-26 16:24:55,140 - web2py - ERROR - Traceback (most recent call last): File "/home/paolo/Desktop/git/web2py/gluon/restricted.py", line 205, in restricted exec ccode in environment File "/home/paolo/Dropbox/git/web2py/applications/bikend/controllers/user.py", line 490, in <module> File "/home/paolo/Desktop/git/web2py/gluon/globals.py", line 182, in <lambda> self._caller = lambda f: f() File "/home/paolo/Dropbox/git/web2py/applications/bikend/controllers/user.py", line 366, in impersonate r = auth.impersonate() File "/home/paolo/Desktop/git/web2py/gluon/tools.py", line 2592, in impersonate self.settings.login_onaccept(form) TypeError: 'list' object is not callable Regards, paolo --