Did I find the right examples for you? yes no

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)
Formats as HTML, writing to the given object.

        def htmlFormat(output, pathParts = (), statDict = None, query = None):
  """Formats as HTML, writing to the given object."""
  statDict = statDict or scales.getStats()
  if query:
    statDict = runQuery(statDict, query)
  _htmlRenderDict(pathParts, statDict, output)
        


src/s/c/scales-1.0.6/src/greplin/scales/twistedweb.py   scales(Download)
    else:
      formats.htmlHeader(request, '/' + '/'.join(parts), self.serverName, query)
      formats.htmlFormat(request, tuple(parts), statDict, query)
 
    return ''

src/s/c/scales-1.0.6/src/greplin/scales/tornadohandler.py   scales(Download)
    else:
      formats.htmlHeader(self, '/' + path, self.serverName, query)
      formats.htmlFormat(self, tuple(parts), statDict, query)
 
    return None

src/s/c/scales-1.0.6/src/greplin/scales/flaskhandler.py   scales(Download)
  else:
    formats.htmlHeader(output, '/' + path, serverName, query)
    formats.htmlFormat(output, tuple(parts), statDict, query)
 
  return output.getvalue()

src/s/c/scales-1.0.6/src/greplin/scales/bottlehandler.py   scales(Download)
    else:
        formats.htmlHeader(output, '/' + path, server_name, query)
        formats.htmlFormat(output, tuple(parts), stat_dict, query)
        response.content_type = "text/html"
 

src/s/c/scales-HEAD/src/greplin/scales/twistedweb.py   scales(Download)
    else:
      formats.htmlHeader(request, '/' + '/'.join(parts), self.serverName, query)
      formats.htmlFormat(request, tuple(parts), statDict, query)
 
    return ''

src/s/c/scales-HEAD/src/greplin/scales/tornadohandler.py   scales(Download)
    else:
      formats.htmlHeader(self, '/' + path, self.serverName, query)
      formats.htmlFormat(self, tuple(parts), statDict, query)
 
    return None

src/s/c/scales-HEAD/src/greplin/scales/flaskhandler.py   scales(Download)
  else:
    formats.htmlHeader(output, '/' + path, serverName, query)
    formats.htmlFormat(output, tuple(parts), statDict, query)
 
  return output.getvalue()

src/s/c/scales-HEAD/src/greplin/scales/bottlehandler.py   scales(Download)
    else:
        formats.htmlHeader(output, '/' + path, server_name, query)
        formats.htmlFormat(output, tuple(parts), stat_dict, query)
        response.content_type = "text/html"
 

src/p/y/pyramid_scales-1.0/src/pyramid_scales/__init__.py   pyramid_scales(Download)
        output.write('<html>')
        greplin.scales.formats.htmlHeader(output, '/' + path, __name__, query)
        greplin.scales.formats.htmlFormat(output, tuple(parts), stats, query)
        output.write('</html>')
 

src/s/c/scales-1.0.6/src/greplin/scales/formats_test.py   scales(Download)
  def testHtmlFormat(self):
    """Test generating HTML with Unicode values."""
    out = six.StringIO()
    formats.htmlFormat(out, statDict={'name': self.UNICODE_VALUE})
    result = out.getvalue()

  1 | 2  Next