예제 #1
0
파일: db.py 프로젝트: pombredanne/Homer
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
파일: testdb.py 프로젝트: pombredanne/Homer
 def setUp(self):
     default = Settings.default()
     self.pool = RoundRobinPool(Settings.namespaces().get(default))
예제 #3
0
파일: testdb.py 프로젝트: pombredanne/Homer
 def setUp(self):
     '''Create the Pool'''
     print "Creating a Pool with the default connections"
     default = Settings.default()
     self.pool = RoundRobinPool(Settings.namespaces().get(default))