Пример #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
Пример #2
0
 def setUp(self):
     default = Settings.default()
     self.pool = RoundRobinPool(Settings.namespaces().get(default))
Пример #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))