Bruno Desthuilliers a écrit : > John Salerno a écrit : > (snip) or of course the dead simple:
try: if int(text) <= 0: raise ValueError except ValueError: self.error_message() return False else: return True BTW, you really should have a look at FormEncode... -- http://mail.python.org/mailman/listinfo/python-list