#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
"""
The Quixote demo using Python ISAPI.

Use as a script to install. Pass remove as a command line argument to
uninstall. Keep this script where you want the DLL to be stored.
Remember that the "Launch IIS Process Account" (IWAM_something) account needs
access rights to the DLL.
"""
from isapi_handler import setup, QuixoteExtension

def create_publisher():
    from quixote.publish import Publisher
    from quixote.demo.mini_demo import RootDirectory
    return Publisher(RootDirectory(), display_exceptions='plain')

name = 'quixote'

# The entry point for the ISAPI extension.
def __ExtensionFactory__():
    return QuixoteExtension(name)

setup(name, 'Quixote demo', create_publisher)
