#NEWLINE# def _check_and_init( self , baseview ) : #NEWLINE# #INDENT# if hasattr ( baseview , 'datamodel' ) : #NEWLINE# #INDENT# if ( baseview . datamodel . session is None ) : #NEWLINE# #INDENT# baseview . datamodel . session = self . session #NEWLINE# #UNINDENT# #UNINDENT# if hasattr ( baseview , '__call__' ) : #NEWLINE# #INDENT# baseview = baseview ( ) #NEWLINE# #UNINDENT# return baseview