Beispiel #1
0
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
Beispiel #2
0
 def setUp(self):
     default = Settings.default()
     self.pool = RoundRobinPool(Settings.namespaces().get(default))
Beispiel #3
0
 def setUp(self):
     '''Create the Pool'''
     print "Creating a Pool with the default connections"
     default = Settings.default()
     self.pool = RoundRobinPool(Settings.namespaces().get(default))