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:
parent
f7f40fc070
commit
77ada246c7
12
Module.py
12
Module.py
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue