#NEWLINE# def parse_partition_scheme( self ) : #NEWLINE# #INDENT# partition_scheme = objects . PartitionScheme ( ) #NEWLINE# for obj in ( 'lv' , 'pv' , 'fs' , 'vg' , 'md' , 'parted' ) : #NEWLINE# #INDENT# attr = '{0}s' . format ( obj ) #NEWLINE# parse_method = getattr ( self , 'parse_{0}_data' . format ( obj ) ) #NEWLINE# raw = self . partition_data . get ( attr , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# setattr ( partition_scheme , attr , parse_method ( raw ) ) #NEWLINE# #UNINDENT# return parse_method