add info command in boobmsg

This commit is contained in:
Christophe Benz 2010-11-19 15:57:47 +01:00 committed by Romain Bignon
commit 368ef37d5b

View file

@ -33,6 +33,15 @@ class Boobmsg(ReplApplication):
COPYRIGHT = 'Copyright(C) 2010 Christophe Benz'
CAPS = ICapMessagesPost
def do_info(self, line):
"""
info
Display information about a backend.
"""
for backend, field in self.do('get_status'):
print '%s: %s = %s' % (backend.name, field.label, field.value)
def do_post(self, line):
"""
post TO