#!/usr/bin/env python
from circuits import Debugger, Component, Event
from circuits.web import Controller, Server
class Foo(Event): pass
class Far(Component):
channel = "foo"
def foo(self):
return "bar"
class Index(Controller):
def foo(self):
return "bar"
def index(self):
yield self.call(Foo(), "foo")
i = Index()
(Server(8081) + i + Debugger() + Far()).run()