#NEWLINE# def _load_json( self , parsed_json ) : #NEWLINE# #INDENT# self . format_version = parsed_json [ 'format' ] #NEWLINE# if ( self . format_version == 1 ) : #NEWLINE# #INDENT# manifest_json = parsed_json [ 'manifests' ] [ 'default' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . format_version == 2 ) : #NEWLINE# #INDENT# manifest_json = parsed_json [ 'manifest' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise qisys . error . Error ( ( 'unknown format: %s' % self . format_version ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . refs = parsed_json [ 'refs' ] #NEWLINE# for ( key , value ) in manifest_json . iteritems ( ) : #NEWLINE# #INDENT# setattr ( self . manifest , key , value )