class WikiPage(MappedClass):
class mongometa:
session = session
name = 'wiki_page'
_id = FieldProperty(schema.ObjectId)
title = FieldProperty(schema.String(required=True))
text = FieldProperty(schema.String(if_missing=''))
I am developing a multiprocess app . For each process, I would like to create a new ThreadLocalODMSession.
Given the above declarative method, how would I bind the MappedClass to different session?
I have already tried numerous ways but none seem to work.