exhibition.utils module

class exhibition.utils.ExhibitionBaseHTTPRequestHandler(*args, directory=None, **kwargs)[source]

Bases: http.server.SimpleHTTPRequestHandler

end_headers()[source]

Send the blank line ending the MIME headers.

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, server_address)[source]

Serves the generated site from deploy_path

Respects settings like base_url if present.