def input_string_or_list(options):
 if (options == '<<inherit>>'):
  return '<<inherit>>'
 if ((options is None) or (options == '') or (options == 'delete')):
  return []
 elif isinstance(options, list):
  return options
 elif isinstance(options, basestring):
  tokens = shlex.split(options)
  return tokens
 else:
  raise CX(_('invalid input type'))

def input_string_or_list ( options ) : if ( options == '<<inherit>>' ) : return '<<inherit>>' if ( ( options is None ) or ( options == '' ) or ( options == 'delete' ) ) : return [ ] elif isinstance ( options , list ) : return options elif isinstance ( options , basestring ) : tokens = shlex . split ( options ) return tokens else : raise CX ( _ ( 'invalid input type' ) )
accepts a delimited list of stuff or a list .