both hostnames and mail addresses should composed by lowercase letters
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 22 Jul 2010 20:42:52 +0000 (16:42 -0400)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 22 Jul 2010 20:42:52 +0000 (16:42 -0400)
PLC/Nodes.py
PLC/Persons.py

index 46fb99a..28ff8c1 100644 (file)
@@ -88,6 +88,7 @@ class Node(Row):
     tags = { }
 
     def validate_hostname(self, hostname):
+        hostname = hostname.lower()
         if not valid_hostname(hostname):
             raise PLCInvalidArgument, "Invalid hostname"
 
index 1d3059f..d35f9f7 100644 (file)
@@ -78,7 +78,7 @@ class Person(Row):
         """
         Validate email address. Stolen from Mailman.
         """
-
+        email = email.lower()
         invalid_email = PLCInvalidArgument("Invalid e-mail address")
 
         if not email: