[Zope-CVS] SVN: ldapadapter/trunk/interfaces.py Added test adapter
fro testing
Roger Ineichen
roger at projekt01.ch
Sun Oct 10 09:01:10 EDT 2004
Log message for revision 27895:
Added test adapter fro testing
Added test view for testing adapter/connection
Changed:
U ldapadapter/trunk/interfaces.py
-=-
Modified: ldapadapter/trunk/interfaces.py
===================================================================
--- ldapadapter/trunk/interfaces.py 2004-10-10 13:00:50 UTC (rev 27894)
+++ ldapadapter/trunk/interfaces.py 2004-10-10 13:01:09 UTC (rev 27895)
@@ -39,6 +39,10 @@
default=389,
required=True,
)
+ baseDN = TextLine(
+ title=_("Base DN"),
+ default=u'',
+ )
bindDN = TextLine(
title=_("Bind DN"),
default=u'',
@@ -79,6 +83,10 @@
),
default="ldap://localhost",
)
+ baseDN = TextLine(
+ title=_("Base DN"),
+ default=u'',
+ )
bindDN = TextLine(
title=_("Bind DN"),
default=u'',
@@ -136,3 +144,14 @@
May raise ldap exceptions.
"""
# TODO: some values are binary and should not be converted to unicode
+
+
+class ICheckLDAPAdapter(Interface):
+ """A test adapter for to test the connection between Zope and LDAP."""
+
+ def testConnection():
+ """Returns a report about connecting the LDAP server.
+
+ Each step of connecting the server is reported as a string
+ in a report (list).
+ """
More information about the Zope-CVS
mailing list