[Spambayes-checkins] spambayes/spambayes CorePlugin.py, NONE,	1.1.2.1 XMLRPCPlugin.py, NONE, 1.1.2.1 Update of /cvsroot/spambayes/spambayes/spambayes In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27119/spambayes Added Files:       Tag: CORESVR 	CorePlugin.py XMLRPCPlugin.py  Log Message: mv WebAppPlugin to XMLRPCPlugin, add CorePlugin --- NEW FILE: CorePlugin.py --- """ Plugins for Core Server. """ __author__ = "Skip Montanaro <iybz@pobox.com" __credits__ = "The Spambayes folk." class Plugin:     def __init__(self, name, ui):         self.name = name         self.ui = ui          class PluginUI:     defaults = ()     def __init__(self):         self.plugin_map = ()         from spambayes import Options         Options.defaults["Plugin"] = self.defaults         Options.load_options() --- NEW FILE: XMLRPCPlugin.py --- from CorePlugin import Plugin, PluginUI from spambayes.OptionsClass import * from spambayes.Options import _ class XMLRPCUI(PluginUI):     defaults = (         ("xmlrpc_path", _("XML-RPC path"), "/sbrpc",          _("""The path to respond to."""),          r"[\\w]+", RESTORE),         ("xmlrpc_host", _("XML-RPC host"), "localhost",          _("""The host to listen on."""),          SERVER, RESTORE),         ("xmlrpc_port", _("XML-RPC port"), "8001",          _("""The port to listen on."""),          r"[\\d]+", RESTORE),         )     def __init__(self):         PluginUI.__init__(self)         # Configuration options we will offer to users.         self.plugin_map = (             (_('XML-RPC Options'), None),             ('Plugin',            'xmlrpc_path'),             ('Plugin',            'xmlrpc_host'),             ('Plugin',            'xmlrpc_port'),             ) def register():     return Plugin("XMLRPC", XMLRPCUI()) _______________________________________________ Spambayes-checkins mailing list pnperxdpv-sarswdlp@python.org http://mail.python.org/mailman/listinfo/spambayes-checkins