Re: [Repoze-dev] FriendlyForm login count not incrementing on failed login

2010-04-23 Thread Ian Stevens
Nice! Thanks! Ian. On 2010-04-22, at 6:04 PM, Gustavo Narea wrote: On 22/04/10 19:55, Gustavo Narea wrote: You're absolutely right, Ian! I'll sort it out. Done: http://code.gustavonarea.net/repoze.who-friendlyform/#friendlyformplugin-examples -- Gustavo Narea xri://=Gustavo.

Re: [Repoze-dev] FriendlyForm login count not incrementing on failed login

2010-04-22 Thread Ian Stevens
Thanks Gustavo. Adding the came_from and __logins to the form and propagating them in the login() method worked. If I had given it more thought (and I see it now in your code), I might have done something like that but it wasn't evident to me from the documentation. I see almost the same HTML

Re: [Repoze-dev] FriendlyForm login count not incrementing on failed login

2010-04-22 Thread Gustavo Narea
On 22/04/10 15:39, Ian Stevens wrote: Thanks Gustavo. Adding the came_from and __logins to the form and propagating them in the login() method worked. If I had given it more thought (and I see it now in your code), I might have done something like that but it wasn't evident to me from the

Re: [Repoze-dev] FriendlyForm login count not incrementing on failed login

2010-04-22 Thread Gustavo Narea
On 22/04/10 19:55, Gustavo Narea wrote: You're absolutely right, Ian! I'll sort it out. Done: http://code.gustavonarea.net/repoze.who-friendlyform/#friendlyformplugin-examples -- Gustavo Narea xri://=Gustavo. ___ Repoze-dev mailing list

Re: [Repoze-dev] FriendlyForm login count not incrementing on failed login

2010-04-20 Thread Ian Stevens
Thanks Gustavo. The version of FriendlyForm I'm using, 1.0.4, does not implement IAuthenticator. I get the following error: ValueError: form: An object has failed to implement interface InterfaceClass repoze.who.interfaces.IAuthenticator The authenticate attribute was not

Re: [Repoze-dev] FriendlyForm login count not incrementing on failed login

2010-04-19 Thread Gustavo Narea
Hello, Ian. It sounds like you've not added the plugin to the authenticators in repoze.who. Make sure to add form to both the identifiers and challengers. HTH, - Gustavo. On 15/04/10 17:22, Ian Stevens wrote: I've built a LDAP authorizing login using repoze.who-1.0.10 and

[Repoze-dev] FriendlyForm login count not incrementing on failed login

2010-04-15 Thread Ian Stevens
I've built a LDAP authorizing login using repoze.who-1.0.10 and repoze.who.plugins.ldap-1.0 under Pylons-0.9.7. Now I want to use repoze.who_friendlyform-1.0.4 to report an incorrect login message to the user. Unfortunately, the login count doesn't seem to be incrementing. Before I go into