it's ok now - thank you!

2012/12/19 Massimo Di Pierro <massimo.dipie...@gmail.com>

> Fixed in trunk. Please check it.
>
>
> On Wednesday, 19 December 2012 09:52:52 UTC-6, mweissen wrote:
>>
>> @auth.requires_login()
>> @auth.requires_permission('**impersonate','auth_user')
>> def imitieren_id():
>>     auth.impersonate(request.**args[0])
>>     redirect(URL('index'))
>>
>> This is the function "imitieren_id" for impersonate. I think (but I am
>> not sure) yesterday there has been no problem, but today (after updating to
>> 2.3.2) I get:
>>
>>
>>
>>
>>
>> 1.
>> 2.
>>
>>
>>
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>>
>>
>> Traceback (most recent call last):
>>   File "H:\\web2py\gluon\restricted.**py", line 212, in restricted
>>
>>
>>
>>     exec ccode in environment
>>   File "H:/web2py/applications/**bewerbung/controllers/default.**py" 
>> <http://127.0.0.1:8000/admin/default/edit/bewerbung/controllers/default.py>, 
>> line 1291, in <module>
>>
>>
>>
>>   File "H:\web2py\gluon\globals.py", line 193, in <lambda>
>>
>>
>>
>>     self._caller = lambda f: f()
>>
>>
>>
>>   File "H:\web2py\gluon\tools.py", line 2929, in f
>>
>>
>>
>>     return action(*a, **b)
>>
>>
>>
>>   File "H:\web2py\gluon\tools.py", line 2929, in f
>>
>>
>>
>>     return action(*a, **b)
>>
>>
>>
>>   File "H:/web2py/applications/**bewerbung/controllers/default.**py" 
>> <http://127.0.0.1:8000/admin/default/edit/bewerbung/controllers/default.py>, 
>> line 124, in imitieren_id
>>
>>
>>
>>     auth.impersonate(request.args[**0])
>>
>>
>>
>>   File "H:\\web2py\gluon\tools.py", line 2830, in impersonate
>>
>>
>>
>>     for callback in self.settings.login_onaccept:
>>
>>
>> TypeError: 'function' object is not iterable
>>
>>
>>
>> Regards, Martin
>>
>>
>>
>>
>>
>>
>>  --
>
>

-- 



Reply via email to