diff idavoll/idavoll.py @ 105:8d8946e67fcb

Move to Twisted 2.0.
author Ralph Meijer <ralphm@ik.nu>
date Fri, 08 Apr 2005 10:01:40 +0000
parents f4d725a94202
children 9fb8f0867d02
line wrap: on
line diff
--- a/idavoll/idavoll.py	Fri Apr 08 09:54:41 2005 +0000
+++ b/idavoll/idavoll.py	Fri Apr 08 10:01:40 2005 +0000
@@ -1,4 +1,4 @@
-from twisted.protocols.jabber import component
+from twisted.words.protocols.jabber import component
 from twisted.application import service
 from twisted.python import components
 from twisted.internet import defer
@@ -49,7 +49,7 @@
         node = iq.query.getAttribute("node")
 
         for c in self.parent:
-            if components.implements(c, component.IService):
+            if component.IService.providedBy(c):
                 if hasattr(c, "get_disco_info"):
                     dl.append(c.get_disco_info(node))
         d = defer.DeferredList(dl, fireOnOneErrback=1, consumeErrors=1)
@@ -88,7 +88,7 @@
         node = iq.query.getAttribute("node")
 
         for c in self.parent:
-            if components.implements(c, component.IService):
+            if component.IService.providedBy(c):
                 if hasattr(c, "get_disco_items"):
                     dl.append(c.get_disco_items(node))
         d = defer.DeferredList(dl, fireOnOneErrback=1, consumeErrors=1)