Mail list validator

While working on a web application called CastAFile, which use a list of email addresses as input. I had to write a Validator to format and validate each email address entered. Here is the code and the description of this validator.

This validator checks a comma separated list of email addresses. This class inherit from validator.Email.

 
Posted on Dec 04, 2007 by: Fred Cirera @ 16:58 Leave a comment Comments: 0

BlogMag.net changes

I have just posted some changes to BlogMag.net.

Navigation changes
I have made some changes to the top menu in the web pages. The button Home now always leads to the member's home page. If the member is not logged in, the member will be asked for a login and password.

Bug fix
I have made some changes in the code to work around the bug in TurboGears. There is a problem with Validator defined inside Compound widgets.

I have fixed that bug by explicitly naming the widget in the method parameters.
def comment_save(self, id, Captcha={}, **data):
def comment_save(self, id, Captcha={}, **data):
If you want more info for that bug you can read this thread in the TurboGears mailing list.
 
Posted on Nov 28, 2007 by: Fred Cirera @ 19:44 Leave a comment Comments: 0

Problem with TGCaptcha

I am a heavy user of TGCaptcha. I know that Captchas are not the best answer to the spam issue but they limit a lot of problems caused by bots that scan the web for forms.

Last week, I discovered a big flaw in TGCaptcha: it can be bypassed very easily. In this post I will explain how to easily fix the problem, while waiting for the latest version of TGCaptcha.

 
Posted on Nov 22, 2007 by: Fred Cirera @ 08:32 Leave a comment Comments: 0