Child: [0f153c] (diff)

Download this file

__init__.py    14 lines (10 with data), 314 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import pymongo
from session import Session
from base import Document
import schema
# Re-export direction keys
ASCENDING = pymongo.ASCENDING
DESCENDING = pymongo.DESCENDING
def bind_sessions(**datastores):
for name, session in Session._registry.iteritems():
session.bind = datastores.get(name, None)