Exemplo n.º 1
0
def __ExtensionFactory__():
    import traceback
    try:
        #return isapi_wsgi.ISAPISimpleHandler(demo_app)
        import win32api
        win32api.LoadLibrary("C:\\Python\\DLLs\\_hashlib.dll")
        return isapi_wsgi.ISAPISimpleHandler(OpenIDApp())
    except:
        f = open(os.path.join(appdir, 'critical error.txt'), 'w')
        f.write(str(os.listdir('c:\\Python\\DLLs')) + '\n')
        f.write(str(sys.path) + '\n')
        traceback.print_exc(file=f)
        f.close()
Exemplo n.º 2
0
def __ExtensionFactory__():
    # TODO: The list should be loaded from a config file
    resources = [
        {"name" : "echo", "module" : "echo", "object" : "application"},
        {"name" : "simple_app", "module" : "simple", "object" : "simple_app"},
        {"name" : "demo", "module" : "demo", "object" : "demo_app"},
    ]
    apps = {}
    for res in resources:
        try:
            import_hook = __import__(res['module'])
            import_hook = getattr(import_hook,res['object'])
            apps[res['name']] = import_hook
        except ImportError:
            raise AssertionError("Problems importing module %s." % res['module'])

    return isapi_wsgi.ISAPISimpleHandler(rootapp=apps['echo'], **apps)
Exemplo n.º 3
0
def __ExtensionFactory__():
    return isapi_wsgi.ISAPISimpleHandler(application)
Exemplo n.º 4
0
def __ExtensionFactory__():
    return isapi_wsgi.ISAPISimpleHandler(qwip.QWIP('quixote.demo'))
def __ExtensionFactory__ ():
  return isapi_wsgi.ISAPISimpleHandler (monitor_directory.App ())
Exemplo n.º 6
0
def __ExtensionFactory__():
    return isapi_wsgi.ISAPISimpleHandler(demo_app)