[ create a new paste ] login | about

Link: http://codepad.org/Y2EZGv4w    [ raw code | fork ]

Python, pasted on Jul 22:
#!/usr/bin/env python

from circuits import Component, Event
from circuits.web import Server, Controller


class Foo(Event):
    """Foo Event"""


class Test(Component):

    def foo(self):
        return "Hello World!"


class Root(Controller):

    def index(self):
        x = yield self.call(Foo(), "*")
        yield x


(Server(("0.0.0.0", 8000)) + Test() + Root()).run()


Create a new paste based on this one


Comments: