#NEWLINE# def CreateScopedSession( self ) : #NEWLINE# #INDENT# self . engine = self . CreateEngine ( models . Base ) #NEWLINE# session_factory = sessionmaker ( bind = session_factory . engine , autocommit = False , class_ = Session ) #NEWLINE# return scoped_session ( session_factory )