[Zope-CVS] SVN: ldapadapter/trunk/field.py Removed comment from URL
validator regex.
Torsten Kurbad
t.kurbad at iwm-kmrc.de
Sun Oct 10 08:41:07 EDT 2004
Log message for revision 27892:
Removed comment from URL validator regex.
Changed:
U ldapadapter/trunk/field.py
-=-
Modified: ldapadapter/trunk/field.py
===================================================================
--- ldapadapter/trunk/field.py 2004-10-10 12:39:36 UTC (rev 27891)
+++ ldapadapter/trunk/field.py 2004-10-10 12:41:07 UTC (rev 27892)
@@ -27,13 +27,8 @@
from ldapadapter.exceptions import InvalidLDAPURI
-_isldapuri = re.compile(
- r"^ldaps?://" # protocol
-
- # BEGIN: host
-
- """
- From RFC 952:
+"""
+From RFC 952:
A "name" (Net, Host, Gateway, or Domain name) is a text
string up to 24 characters drawn from the alphabet (A-Z),
@@ -45,8 +40,11 @@
tinction is made between upper and lower case. The first
character must be an alpha character. The last character
must not be a minus sign or period.
- """
+"""
+_isldapuri = re.compile(
+ r"^ldaps?://" # protocol
+ # BEGIN: host
r"([a-zA-Z]+([a-zA-Z\d\-]*[a-zA-Z\d])*"
r"(\.[a-zA-Z\d]+([a-zA-Z\d\-]*[a-zA-Z\d])*)*"
# END: host
More information about the Zope-CVS
mailing list