﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
264	None	hugo <gb@…>	Adrian Holovaty	"IP addresses are quite custom values so I think creating a validator for that type would be justified. Here is my take at the problem:

{{{
import re

IP = re.compile('^\d+\.\d+\.\d+\.\d+$')
def isIPAddress(field_data, all_data):
    if IP.match(field_data):
        parts = [0 <= int(el) <= 255 for el in field_data.split('.')]
        if len(parts) == 4: return
    raise validators.ValidationError(""Please enter a dotted number notation for an IP address"")
}}}
"	enhancement	closed	Contrib apps	unicode	normal	fixed	None	None	Ready for checkin	0	0	0	0	0	0
