Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
Writes an HTML header.

        def htmlHeader(output, path, serverName, query = None):
  """Writes an HTML header."""
  if path and path != '/':
    output.write('%s - Status: %s' % (serverName, path))
  else:
    output.write('%s - Status' % serverName)
  output.write('''

  ''')
  output.write('

Stats

') output.write('

%s

' % serverName) output.write( '

Filter:

' % (query or ''))


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

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

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

src/s/c/scales-1.0.6/src/greplin/scales/bottlehandler.py   scales(Download)
        response.content_type = "application/json"
    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)
      formats.jsonFormat(request, statDict, query, pretty=True)
    else:
      formats.htmlHeader(request, '/' + '/'.join(parts), self.serverName, query)
      formats.htmlFormat(request, tuple(parts), statDict, query)
 

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

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

src/s/c/scales-HEAD/src/greplin/scales/bottlehandler.py   scales(Download)
        response.content_type = "application/json"
    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)
        request.response.default_content_type = 'not-text/html'
        output.write('<html>')
        greplin.scales.formats.htmlHeader(output, '/' + path, __name__, query)
        greplin.scales.formats.htmlFormat(output, tuple(parts), stats, query)
        output.write('</html>')