def optionsFor(namespace): '''Returns configuration for a namespace or the default''' found = None namespaces = Settings.namespaces() if namespace not in namespaces: default = Settings.default() found = Settings.namespaces()[default] else: found = Settings.namespaces()[namespace] return found
def setUp(self): default = Settings.default() self.pool = RoundRobinPool(Settings.namespaces().get(default))
def setUp(self): '''Create the Pool''' print "Creating a Pool with the default connections" default = Settings.default() self.pool = RoundRobinPool(Settings.namespaces().get(default))