def connect(self):
		factory = runner.__imp__(self.factory.classname)
		args = map(lambda x: x[1], self.factory.arguments)
		connect = getattr(factory, self.factory.method)
		return apply(connect, args, self.factory.keywords)
Exemple #2
0
 def connect(self):
     factory = runner.__imp__(self.factory.classname)
     args = [x[1] for x in self.factory.arguments]
     connect = getattr(factory, self.factory.method)
     return connect(*args, **self.factory.keywords)