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 . > > _

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 . ___ Repoze-dev mailing list Repoze-dev@lists.repo

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 th

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 fo

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

2010-04-21 Thread Gustavo Narea
On 21/04/10 22:22, Gustavo Narea wrote: > > def see_you_later(self): > > """Post-logout""" > > notificator('We hope to see you soon!') > > came_from = str(request.params.get('came_from', '')) or > > url_for('/') > > redirect_to(url_for(came_from)) > According

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

2010-04-21 Thread Gustavo Narea
Hi, Ian. On 20/04/10 15:40, Ian Stevens wrote: > 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 > > The authenticate attribute was not pro

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 The authenticate attribute was not provided. With form in only identifiers and challengers,

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.who.p

[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 det