#NEWLINE# def create_engine( ) : #NEWLINE# #INDENT# global _global_engine #NEWLINE# engine_options = { #NEWLINE# #INDENT# 'yaql.limitIterators' : ( settings . YAQL_LIMIT_ITERATORS or 10000 ) , #NEWLINE# 'yaql.memoryQuota' : ( settings . YAQL_MEMORY_QUOTA or ( ( 100 * 1024 ) * 1024 ) ) , #NEWLINE# 'yaql.convertTuplesToLists' : True , #NEWLINE# 'yaql.convertSetsToLists' : True , #NEWLINE# #UNINDENT# } #NEWLINE# if ( _global_engine is None ) : #NEWLINE# #INDENT# _global_engine = yaql . YaqlFactory ( ) . create ( engine_options ) #NEWLINE# #UNINDENT# return _global_engine