#NEWLINE# def __init__( self , root_collection , file_id = None , file_document = None , delegate = None ) : #NEWLINE# #INDENT# collection_class = create_class_with_framework ( AgnosticCollection , self . _framework , file_id . __module__ ) #NEWLINE# if ( not isinstance ( root_collection , collection_class ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'First argument to MotorGridOut must be MotorCollection, not %r' % root_collection ) ) #NEWLINE# #UNINDENT# if delegate : #NEWLINE# #INDENT# self . delegate = delegate #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . delegate = self . __delegate_class__ ( root_collection . delegate , file_id , file_document , _connect = False ) #NEWLINE# #UNINDENT# self . io_loop = root_collection . get_io_loop ( )