exhibition.utils module

class exhibition.utils.ExhibitionBaseHTTPRequestHandler(request, client_address, server)[source]

Bases: http.server.SimpleHTTPRequestHandler

translate_path(path)[source]

Translate a /-separated PATH to the local filename syntax.

Components that mean special things to the local file system (e.g. drive or directory names) are ignored. (XXX They should probably be diagnosed.)

exhibition.utils.gen(settings)[source]

Generate site

Deletes deploy_path first.

exhibition.utils.serve(settings)[source]

Serves the generated site from deploy_path

Respects settings like base_url if present.