Esempio n. 1
0
File: db.py Progetto: drewp/photo
def getMonque():
    from pymongo import Connection

    db = Connection(*networking.monqueMongo())["photoQueue"]
    from monque import Monque

    return Monque(db)
Esempio n. 2
0
File: db.py Progetto: drewp/photo
def getProgressCollection():
    from pymongo import MongoClient

    db = MongoClient(*networking.monqueMongo(), connect=False)["photoQueue"]
    return db["progress"]
Esempio n. 3
0
File: db.py Progetto: drewp/photo
def getProgressCollection():
    from pymongo import MongoClient
    db = MongoClient(*networking.monqueMongo(), connect=False)['photoQueue']
    return db['progress']
Esempio n. 4
0
File: db.py Progetto: drewp/photo
def getMonque():
    from pymongo import Connection
    db = Connection(*networking.monqueMongo())['photoQueue']
    from monque import Monque
    return Monque(db)