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 _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )