[Otfbot-svn] r488 - trunk/lib

allo at BerliOS allo
So Nov 2 15:01:49 CET 2008


Author: allo
Date: 2008-11-02 15:01:49 +0100 (Sun, 02 Nov 2008)
New Revision: 488

Modified:
   trunk/lib/pluginSupport.py
Log:
use kwargs


Modified: trunk/lib/pluginSupport.py
===================================================================
--- trunk/lib/pluginSupport.py	2008-11-02 14:00:52 UTC (rev 487)
+++ trunk/lib/pluginSupport.py	2008-11-02 14:01:49 UTC (rev 488)
@@ -8,9 +8,9 @@
 	def __init__(self, root, parent):
 		self.root=root
 		self.parent=parent
-		self.getClient=lambda network: root.getNamedServices()['ircClient'].namedServices[network].args[2].protocol
+		self.getClient=lambda network: root.getNamedServices()['ircClient'].namedServices[network].kwargs['factory'].protocol
 		self.getClientNames=lambda : [connection.name for connection in root.getNamedServices()['ircClient'].services]
-		self.getServer=lambda network: root.getNamedServices()['ircServer'].namedServices[network].args[2].protocol
+		self.getServer=lambda network: root.getNamedServices()['ircServer'].namedServices[network].kwargs['factory'].protocol
 		self.getServers=lambda : [connection for connection in root.getNamedServices()['ircServer'].services]
 	def importPlugin(self, name):
 		if not self.classes:




Mehr Informationen über die Mailingliste Otfbot-dev