#NEWLINE# def get_item_namespaces( self , item ) : #NEWLINE# #INDENT# assert self . api_request #NEWLINE# namespaces = super ( ModelResource , self ) . get_item_namespaces ( item ) #NEWLINE# for inline in self . inline_instances : #NEWLINE# #INDENT# name = ( 'inline-%s' % inline . rel_name ) #NEWLINE# assert inline . api_request #NEWLINE# namespace = Namespace ( name = name , endpoint = inline , state_data = { #NEWLINE# #INDENT# 'parent' : item , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( 'parent' in namespace . endpoint . state ) #NEWLINE# namespace . link #NEWLINE# namespaces [ name ] = namespace #NEWLINE# #UNINDENT# return namespaces