[Zope-CVS] SVN: ldapadapter/trunk/utility.py Whitespace and
docstring wording.
Florent Guillaume
fg at nuxeo.com
Sun Oct 10 13:25:00 EDT 2004
Log message for revision 27930:
Whitespace and docstring wording.
Changed:
U ldapadapter/trunk/utility.py
-=-
Modified: ldapadapter/trunk/utility.py
===================================================================
--- ldapadapter/trunk/utility.py 2004-10-10 17:15:40 UTC (rev 27929)
+++ ldapadapter/trunk/utility.py 2004-10-10 17:25:00 UTC (rev 27930)
@@ -83,14 +83,14 @@
return LDAPConnection(conn)
def getServerURL(self):
- """Returns the server url from the host and port info."""
+ """Get the server LDAP URL from the server info."""
proto = self.useSSL and 'ldaps' or 'ldap'
return '%s://%s:%s' % (proto, self.host, self.port)
-
def _setServerURL(self, url):
- """Returns the server url from the host and port info.
- ldap[s]://host:port
+ """Set the server info from an LDAP URL.
+
+ An LDAP url is of the form ldap[s]://host:port
"""
port = 389
url = url.strip()
@@ -102,7 +102,7 @@
port = int(urlList[2])
else:
LDAPURIParseError(LDAP_uri_parse_error)
-
+
self.host = host
self.port = port
self.useSSL = useSSL
@@ -170,9 +170,7 @@
class ManageableLDAPAdapter(LDAPAdapter, Persistent, Contained):
"""LDAP adapter utility
-
"""
-
implements(IManageableLDAPAdapter)
serverURL = property(LDAPAdapter.getServerURL, LDAPAdapter._setServerURL)
More information about the Zope-CVS
mailing list