def Or(*args):
 if (len(args) < 2):
  raise IllegalQueryError, args
 elif (len(args) == 2):
  return ('(OR %s %s)' % args)
 else:
  return ('(OR %s %s)' % (args[0], Or(*args[1:])))

def Or ( * args ) : if ( len ( args ) < 2 ) : raise IllegalQueryError , args elif ( len ( args ) == 2 ) : return ( '(OR %s %s)' % args ) else : return ( '(OR %s %s)' % ( args [ 0 ] , Or ( * args [ 1 : ] ) ) )
the disjunction of two or more queries .