repl: interactive add of backends when no one is loaded at startup

This commit is contained in:
Romain Bignon 2010-09-25 00:57:54 -04:00
commit 04037e7893
13 changed files with 144 additions and 106 deletions

View file

@ -30,9 +30,7 @@ class Chatoob(ReplApplication):
APPNAME = 'chatoob'
VERSION = '0.1'
COPYRIGHT = 'Copyright(C) 2010 Christophe Benz'
def load_default_backends(self):
self.load_backends(ICapChat)
CAPS = ICapChat
def on_new_chat_message(self, message):
print 'on_new_chat_message: %s' % message