#NEWLINE# def get_model( ) : #NEWLINE# #INDENT# model_backend = current_app . config [ 'DATA_BACKEND' ] #NEWLINE# if ( model_backend == 'cloudsql' ) : #NEWLINE# #INDENT# from . import model_cloudsql #NEWLINE# model = model_cloudsql #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( model_backend == 'datastore' ) : #NEWLINE# #INDENT# from . import model_datastore #NEWLINE# model = model_datastore #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( model_backend == 'mongodb' ) : #NEWLINE# #INDENT# from . import model_mongodb #NEWLINE# model = model_mongodb #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'No appropriate databackend configured. Please specify datastore, cloudsql, or mongodb' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return model