Package starcluster :: Module webtools :: Class TemplateHandler
[hide private]
[frames] | no frames]

Class TemplateHandler

source code


Simple GET handler that loads and renders files/templates within a package under the starcluster.templates package. You can set the _root_template_pkg attribute on this class before passing to BaseHTTPServer to specify a starcluster.templates subpackage to render templates from. Defaults to rendering starcluster.templates (ie '/')

Nested Classes [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: MessageClass

Instance Methods [hide private]
 
do_GET(self) source code

Inherited from BaseHandler: do_POST, do_shutdown

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: address_string, date_time_string, end_headers, handle, handle_one_request, log_date_time_string, log_error, log_message, log_request, parse_request, send_error, send_header, send_response, version_string

Inherited from SocketServer.StreamRequestHandler: finish, setup

Inherited from SocketServer.BaseRequestHandler: __init__

Class Variables [hide private]
  _root_template_pkg = '/'
  _tmpl_context = {}
  _bin_exts = ('.ico', '.gif', '.jpg', '.png')

Inherited from BaseHandler: error_message_format

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: default_request_version, error_content_type, monthname, protocol_version, responses, server_version, sys_version, weekdayname

Inherited from SocketServer.StreamRequestHandler: rbufsize, wbufsize

Method Details [hide private]

do_GET(self)

source code 
Overrides: BaseHandler.do_GET