it's ok now.

2012/8/27 Massimo Di Pierro <[email protected]>

> good catch. In trunk. Please check it.
>
>
> On Sunday, 26 August 2012 15:54:16 UTC-5, mweissen wrote:
>>
>>  I have tried to use the "plugin_conditionalrecaptcha.**py" together
>> with impersonate and I got
>>
>>   File "....\gluon\tools.py", line 2687, in impersonate
>>
>>
>>     self.settings.login_onaccept(f**orm)
>>
>>
>>
>> In /gluon/tools.py, line 2685 I found:
>>
>>  if self.settings.login_onaccept:
>>
>>
>>      form = Storage(dict(vars=self.user))
>>      self.settings.login_onaccept(**form)
>>
>>
>>
>> plugin_conditionalrecaptcha inserts something into login_onaccepts and if 
>> this list is not empty,
>> impersonate tries to call a list. Maybe the code should be:
>>
>>
>>
>> form = Storage(dict(vars=self.user))
>> for login in self.settings.login_onaccept:
>>
>>
>>     login(form)
>>
>>
>>
>>
>> It works for me, but I don't know if all cases are covered.
>>
>> Regards, Martin
>>
>>
>>  --
>

-- 



Reply via email to