[Twisted-Python] Ldaptor patch for Interfaces

Colin Alston colin.alston at thusa.co.za
Mon Aug 17 05:37:10 EDT 2009


TV! Please fix Ldaptor.

Index: interfaces.py
===================================================================
--- interfaces.py       (revision 1506)
+++ interfaces.py       (working copy)
@@ -1,6 +1,6 @@
-from twisted.python import components
+from zope.interface import Interface

-class ILDAPEntry(components.Interface):
+class ILDAPEntry(Interface):
     """

     Pythonic API for LDAP object access and modification.
@@ -126,7 +126,7 @@
         incorrect.
         """

-class IEditableLDAPEntry(components.Interface):
+class IEditableLDAPEntry(Interface):
     """Interface definition for editable LDAP entries."""

     def __setitem__(self, key, value):
@@ -206,7 +206,7 @@

         """

-class IConnectedLDAPEntry(components.Interface):
+class IConnectedLDAPEntry(Interface):
     """Interface definition for LDAP entries that are part of a bigger
whole."""

     def namingContext(self):
@@ -334,7 +334,7 @@

         """

-class ILDAPConfig(components.Interface):
+class ILDAPConfig(Interface):
     """Generic LDAP configuration retrieval."""

     def getBaseDN(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090817/8ee9dc8f/attachment.htm 


More information about the Twisted-Python mailing list