Merge pull request #811 from niphlod/update/ipaddr

updated ipaddr to the latest version
This commit is contained in:
mdipierro committed 2015-02-24 09:26:21 -06:00
commit dbd5bf0be6
2 files changed
+248 -395

No files matched your search

+247 -394
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -3808,7 +3808,7 @@ class IS_IPADDRESS(Validator):
from gluon.contrib import ipaddr as ipaddress from gluon.contrib import ipaddr as ipaddress
try: try:
ip = ipaddress.ip_address(value) ip = ipaddress.IPAddress(value)
except ValueError, e: except ValueError, e:
return (value, translate(self.error_message)) return (value, translate(self.error_message))