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

All Samples(24)  |  Call(12)  |  Derive(0)  |  Import(12)

src/w/e/WebStack-1.2.7/examples/Zope/CalendarProduct/__init__.py   WebStack(Download)
#!/usr/bin/env python
 
"A Zope calendar product."
 
from Calendar import CalendarResource
    def __init__(self, id):
 
        # Choose or customise one of the following if the example fails.
 
        WebStackAdapterProduct.__init__(self, id, CalendarResource())

src/w/e/WebStack-1.2.7/examples/Webware/CalendarContext/__init__.py   WebStack(Download)
 
from WebStack.Adapters.Webware import deploy
from Calendar import CalendarResource
 
# NOTE: Initialising a shared resource.
# Choose or customise one of the following if the example fails.
 
resource = CalendarResource()

src/w/e/WebStack-1.2.7/examples/Webware/CalendarApp/__init__.py   WebStack(Download)
 
from WebStack.Adapters.Webware import WebStackServletFactory
from Calendar import CalendarResource
 
# NOTE: Initialising a shared resource.
# Choose or customise one of the following if the example fails.
 
resource = CalendarResource()

src/w/e/WebStack-1.2.7/examples/ModPython/CalendarApp/CalendarHandler.py   WebStack(Download)
 
from WebStack.Adapters.ModPython import deploy
from Calendar import CalendarResource
 
# NOTE: Not sure if the resource should be maintained in a resource pool.
# Choose or customise one of the following if the example fails.
 
resource = CalendarResource()

src/w/e/WebStack-1.2.7/examples/WSGI/CalendarHandler.py   WebStack(Download)
 
from WebStack.Adapters.WSGI import deploy_as_cgi
from Calendar import CalendarResource
 
# Choose or customise one of the following if the example fails.
 
deploy_as_cgi(CalendarResource(), handle_errors=0)

src/w/e/WebStack-1.2.7/examples/WSGI/CalendarApp.py   WebStack(Download)
 
from WebStack.Adapters.WSGI import deploy_with_wsgiref as deploy
from Calendar import CalendarResource
 
# Choose or customise one of the following if the example fails.
 
deploy(CalendarResource(), handle_errors=0)

src/w/e/WebStack-1.2.7/examples/Twisted/CalendarApp.py   WebStack(Download)
#!/usr/bin/env python
 
from WebStack.Adapters.Twisted import deploy
from Calendar import CalendarResource
 
print "Serving..."
 
# Choose or customise one of the following if the example fails.
 
deploy(CalendarResource(), handle_errors=0)

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

src/w/e/WebStack-1.2.7/examples/Django/calendarapp.py   WebStack(Download)
#!/usr/bin/env python
 
from WebStack.Adapters.Django import deploy
from Calendar import CalendarResource
 
# Choose or customise one of the following if the example fails.
 
resource = CalendarResource()

src/w/e/WebStack-1.2.7/examples/CGI/CalendarHandler.py   WebStack(Download)
 
from WebStack.Adapters.CGI import deploy
from Calendar import CalendarResource
 
# Choose or customise one of the following if the example fails.
 
deploy(CalendarResource(), handle_errors=0)

  1 | 2  Next