#NEWLINE# def __init__( self , config = None , db_name = None ) : #NEWLINE# #INDENT# uri = ( self . _get_uri ( db_name ) or self . default_uri ) #NEWLINE# self . config = ( config or Config ( uri ) ) #NEWLINE# self . registry = Registry ( self . config ) #NEWLINE# self . type_system = JSONTypeSystem ( ) #NEWLINE# self . request = self . request_class ( self . config , self . type_system . content_type ) #NEWLINE# self . scripts = GroovyScripts ( self . config ) #NEWLINE# scripts_file = get_file_path ( __file__ , 'gremlin.groovy' ) #NEWLINE# self . scripts . update ( scripts_file ) #NEWLINE# self . registry . add_scripts ( 'gremlin' , self . scripts )