Added comment describing the URL validation bug.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 2 Mar 2014 21:13:11 +0000 (21:13 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 2 Mar 2014 21:13:11 +0000 (21:13 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1907 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrvalidators.py

index d721da0178722971bf2b13048aa71628dea46c27..3baadddb020881008986a3d84af3bd4ef9ef05de 100644 (file)
@@ -545,6 +545,8 @@ class GermanCachet(formencode.FancyValidator):
 
 class Url(formencode.FancyValidator):
     """Validates an URL. In contrast to fromencode.validators.URL, umlauts are allowed."""
 
 class Url(formencode.FancyValidator):
     """Validates an URL. In contrast to fromencode.validators.URL, umlauts are allowed."""
+    # formencode 1.2.5 to formencode 1.3.0a1 sometimes raise ValueError instead of Invalid exceptions
+    # https://github.com/formencode/formencode/pull/61
     urlv = formencode.validators.URL()    
     def to_python(self, value):
         self.assert_string(value, None)
     urlv = formencode.validators.URL()    
     def to_python(self, value):
         self.assert_string(value, None)