[ create a new paste ] login | about

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

Python, pasted on Jan 25:
#!/usr/bin/env python

from circuits import Component, Debugger, Event, Manager


class Hello(Event):
    """Hello Event"""


class App1(Component):

    channel = "app1"

    def hello(self):
        print("Hello World!")


class App2(Component):

    channel = "app2"

    def hello(self):
        print("Hello World!")

manager = Manager()
Debugger().register(manager)
App1().register(manager)
App2().register(manager)
manager.start()


Create a new paste based on this one


Comments: