def set_virt_file_size(self, num):
 if ((num is None) or (num == '')):
  self.virt_file_size = 0
  return
 if (num == '<<inherit>>'):
  self.virt_file_size = '<<inherit>>'
  return
 if (isinstance(num, basestring) and (num.find(',') != (-1))):
  tokens = num.split(',')
  for t in tokens:
   self.set_virt_file_size(t)
  self.virt_file_size = num
  return
 try:
  inum = int(num)
  if (inum != float(num)):
   raise CX(_(('invalid virt file size (%s)' % num)))
  if (inum >= 0):
   self.virt_file_size = inum
   return
  raise CX(_(('invalid virt file size (%s)' % num)))
 except:
  raise CX(_(('invalid virt file size (%s)' % num)))

def set_virt_file_size ( self , num ) : if ( ( num is None ) or ( num == '' ) ) : self . virt_file_size = 0 return if ( num == '<<inherit>>' ) : self . virt_file_size = '<<inherit>>' return if ( isinstance ( num , basestring ) and ( num . find ( ',' ) != ( - 1 ) ) ) : tokens = num . split ( ',' ) for t in tokens : self . set_virt_file_size ( t ) self . virt_file_size = num return try : inum = int ( num ) if ( inum != float ( num ) ) : raise CX ( _ ( ( 'invalid virt file size (%s)' % num ) ) ) if ( inum >= 0 ) : self . virt_file_size = inum return raise CX ( _ ( ( 'invalid virt file size (%s)' % num ) ) ) except : raise CX ( _ ( ( 'invalid virt file size (%s)' % num ) ) )
for virt only .