code: def href(*args, **kw):
      
      result = [(request.script_root if request else "") + "/"]
      for idx, arg in enumerate(args):
          result.append(("/" if idx else "") + url_quote(arg))
      if kw:
          result.append("?" + url_encode(kw))
      return "".join(result)
docs: Simple function for URL generation.  Position arguments are used for the
      URL path and keyword arguments are used for the url parameters.