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

All Samples(146)  |  Call(0)  |  Derive(75)  |  Import(71)

src/c/i/circuits-3.0.0.dev/examples/web/terminal/terminal.py   circuits(Download)
from circuits.web.events import stream
from circuits import handler, Event, Component
from circuits.web import Server, Controller, Logger, Static, Sessions
 
BUFFERING = 1
class Root(Controller):
 
    def GET(self, *args, **kwargs):
        self.expires(60 * 60 * 24 * 30)
        return self.serve_file(os.path.abspath("static/index.xhtml"))

src/c/i/circuits-3.0.0.dev/examples/web/websockets.py   circuits(Download)
from circuits import Component, Debugger
from circuits.web.dispatchers import WebSockets
from circuits.web import Controller, Logger, Server, Static
 
 
class Root(Controller):
 
    def index(self):
        return "Hello World!"
 

src/c/i/circuits-3.0.0.dev/examples/web/wiki/wiki.py   circuits(Download)
 
import circuits
from circuits.web import Server, Controller, Logger, Static
 
import macros
class Root(Controller):
 
    db = Wiki("wiki.db")
 
    environ = {"db": db, "macros": macros.loadMacros()}

src/c/i/circuits-3.0.0.dev/examples/web/virtualhosts.py   circuits(Download)
#!/usr/bin/env python
 
from circuits.web import Server, Controller
from circuits.web.dispatchers import VirtualHosts
 
 
class Root(Controller):
class Foo(Controller):
 
    channel = "/foo"
 
    def index(self):
        return "I am foo."
 
 
class Bar(Controller):

src/c/i/circuits-3.0.0.dev/examples/web/sessions.py   circuits(Download)
#!/usr/bin/env python
 
from circuits.web import Server, Controller, Sessions
 
 
class Root(Controller):

src/c/i/circuits-3.0.0.dev/examples/web/makotemplates.py   circuits(Download)
from mako.lookup import TemplateLookup
 
from circuits.web import Server, Controller, Static
 
DEFAULTS = {}
class Root(Controller):
 
    tpl = "index.html"
 
    def index(self):

src/c/i/circuits-3.0.0.dev/examples/web/jsonserializer.py   circuits(Download)
 
from circuits import handler, Component
from circuits.web import Server, Controller, Logger
 
 
class Root(Controller):
 
    def index(self):
        return {"message": "Hello World!"}
 

src/c/i/circuits-3.0.0.dev/examples/web/crud.py   circuits(Download)
#!/usr/bin/env python
 
from circuits.web import Server, Controller, Logger
 
 
class Root(Controller):

src/c/i/circuits-3.0.0.dev/examples/web/shadowauth.py   circuits(Download)
 
from circuits import handler, Component
from circuits.web import _httpauth, Server, Controller
from circuits.web.errors import HTTPError, Unauthorized
 
class Root(Controller):
 
    def index(self):
        return "Hello, {0:s}".format(self.request.login)
 

src/c/i/circuits-3.0.0.dev/docs/source/examples/helloweb.py   circuits(Download)
#!/usr/bin/env python
 
from circuits.web import Server, Controller
 
 
class Root(Controller):

  1 | 2 | 3 | 4 | 5 | 6 | 7  Next