[Zope] Python Generators and Zope question
Dieter Maurer
dieter at handshake.de
Thu Apr 20 14:31:49 EDT 2006
Palermo, Tom wrote at 2006-4-20 10:52 -0400:
>I have a site that uses CookieCrumbler for user login. I need to track how
>many incorrect login attempts a user makes. I am trying to use a python
>generator to do this but it makes Zope hang when I try to do an invalid
>login (eg. no password or incorrect password). Here's a snippet:
I fear you are on the wrong way.
You must store the number of incorrect login attempts with
the user.
For this, you should use a standard integer (and not a generator).
--
Dieter
More information about the Zope
mailing list