#NEWLINE# def _get_spec( self , **kwargs ) : #NEWLINE# #INDENT# if ( not self . _obj . get ( '_id' ) ) : #NEWLINE# #INDENT# raise RuntimeError ( 'This document is not saved, no files should be attached' ) #NEWLINE# #UNINDENT# spec = { #NEWLINE# #INDENT# 'container' : self . _container_name , #NEWLINE# 'docid' : self . _obj [ '_id' ] , #NEWLINE# #UNINDENT# } #NEWLINE# spec . update ( kwargs ) #NEWLINE# return spec