Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(8)  |  Derive(0)  |  Import(8)

src/w/e/WebStack-1.2.7/examples/Zope/AuthProduct/__init__.py   WebStack(Download)
#!/usr/bin/env python
 
"A Zope product which tests authentication."
 
from Auth import AuthResource, AuthAuthenticator
    def __init__(self, id):
        WebStackAdapterProduct.__init__(self, id, AuthResource(), AuthAuthenticator())
 
InitializeClass(AuthProduct)
 

src/w/e/WebStack-1.2.7/examples/Webware/AuthContext/__init__.py   WebStack(Download)
 
from WebStack.Adapters.Webware import deploy
from Auth import AuthResource, AuthAuthenticator
 
# NOTE: Initialising a shared resource.
 
resource = AuthResource()
authenticator = AuthAuthenticator()

src/w/e/WebStack-1.2.7/examples/Webware/AuthApp/__init__.py   WebStack(Download)
 
from WebStack.Adapters.Webware import WebStackServletFactory
from Auth import AuthResource, AuthAuthenticator
 
# NOTE: Initialising a shared resource.
 
resource = AuthResource()
authenticator = AuthAuthenticator()

src/w/e/WebStack-1.2.7/examples/ModPython/AuthApp/AuthHandler.py   WebStack(Download)
 
from WebStack.Adapters.ModPython import deploy
from Auth import AuthResource, AuthAuthenticator
 
# NOTE: Not sure if the resource should be maintained in a resource pool.
 
resource = AuthResource()
authenticator = AuthAuthenticator()

src/w/e/WebStack-1.2.7/examples/Twisted/AuthApp.py   WebStack(Download)
#!/usr/bin/env python
 
from WebStack.Adapters.Twisted import deploy
from Auth import AuthResource, AuthAuthenticator
 
print "Serving..."
deploy(AuthResource(), AuthAuthenticator(), handle_errors=0)

src/w/e/WebStack-1.2.7/examples/JavaServlet/AuthApp.py   WebStack(Download)
#!/usr/bin/env python
 
from WebStack.Adapters.JavaServlet import deploy
from Auth import AuthResource, AuthAuthenticator
 
AuthApp = deploy(AuthResource(), AuthAuthenticator(), handle_errors=0)

src/w/e/WebStack-1.2.7/examples/Django/authapp.py   WebStack(Download)
#!/usr/bin/env python
 
from WebStack.Adapters.Django import deploy
from Auth import AuthResource, AuthAuthenticator
 
resource = AuthResource()
authenticator = AuthAuthenticator()

src/w/e/WebStack-1.2.7/examples/BaseHTTPRequestHandler/AuthApp.py   WebStack(Download)
#!/usr/bin/env python
 
from WebStack.Adapters.BaseHTTPRequestHandler import deploy
from Auth import AuthResource, AuthAuthenticator
 
print "Serving..."
deploy(AuthResource(), AuthAuthenticator(), handle_errors=0)