old_contents: #!/usr/bin/python -i
  
  from circuits import Event, Component, Debugger, Manager
  
  class Foo(Component):
  
      def foo(self):
          return "foo"
  
  m = Manager() + Foo() + Debugger()
  m.start()
  
new_contents: #!/usr/bin/python -i
  
  from circuits import Event, Component
  
  class Foo(Event):
      success = "foo_success"
      failure = "foo_failure"
  
  class System(Component):
  
      def foo(self):
          return "foo"
  
      def foo_success(self, r):
          print "foo: %s" % repr(r)
  
      def foo_failure(self, e):
          print "foo: %s" % str(e)
  
  sys = System()
  sys.start()
  
subject: Use the Smarter Event object implemented in 070fc11bf615 as an improved example