Module: stub out xmlrpc_init()

similar to db_init(), create a stub xmlrpc_init() that's called during
module initialization, for doing XML-RPC setup stuff
This commit is contained in:
Brian S. Stephan 2013-01-04 10:13:57 -06:00
parent f7f40fc070
commit 77ada246c7
1 changed files with 12 additions and 0 deletions

View File

@ -56,6 +56,9 @@ class Module(object):
# set up database for this module
self.db_init()
# set up XML-RPC for this module
self.xmlrpc_init()
self.log.info("Loaded " + self.__class__.__name__)
def register_handlers(self):
@ -275,6 +278,15 @@ class Module(object):
pass
def xmlrpc_init(self):
"""Set up XML-RPC handlers.
Modules interested in this should implement registration here.
"""
pass
def do(self, connection, event, nick, userhost, what, admin):
"""Do the primary thing this module was intended to do, in most cases.