#NEWLINE# def __init__( self , dict_items , instance , name ) : #NEWLINE# #INDENT# Document = _import_class ( 'Document' ) #NEWLINE# EmbeddedDocument = _import_class ( 'EmbeddedDocument' ) #NEWLINE# if isinstance ( instance , ( Document , EmbeddedDocument ) ) : #NEWLINE# #INDENT# self . _instance = weakref . proxy ( instance ) #NEWLINE# #UNINDENT# self . _name = name #NEWLINE# super ( BaseDict , self ) . __init__ ( dict_items )