def set_virt_type(self, vtype):
 if (vtype == '<<inherit>>'):
  self.virt_type = '<<inherit>>'
  return
 if (vtype.lower() not in ['qemu', 'kvm', 'xenpv', 'xenfv', 'vmware', 'vmwarew', 'openvz', 'auto']):
  raise CX(_(('invalid virt type (%s)' % vtype)))
 self.virt_type = vtype

def set_virt_type ( self , vtype ) : if ( vtype == '<<inherit>>' ) : self . virt_type = '<<inherit>>' return if ( vtype . lower ( ) not in [ 'qemu' , 'kvm' , 'xenpv' , 'xenfv' , 'vmware' , 'vmwarew' , 'openvz' , 'auto' ] ) : raise CX ( _ ( ( 'invalid virt type (%s)' % vtype ) ) ) self . virt_type = vtype
virtualization preference .