Mercurial > public > src > moin > 1.9
diff MoinMoin/config/multiconfig.py @ 2147:b01a6ef1be4c
Get rid of the global xmlrpc Server object. Instantiate one in config.
author | Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> |
---|---|
date | Sun, 17 Jun 2007 15:25:40 +0200 |
parents | 7af58454aafa |
children | cf4c4a3d6085 |
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py Sun Jun 17 02:44:13 2007 +0200 +++ b/MoinMoin/config/multiconfig.py Sun Jun 17 15:25:40 2007 +0200 @@ -662,6 +662,11 @@ # check if jabber bot is available and set flag: self.jabber_enabled = self.bot_host is not None + + # if we are to use the jabber bot, instantiate a server object for future use + if self.jabber_enabled: + from xmlrpclib import Server + self.xmlrpc_server = Server("http://" + self.bot_host, ) # Cache variables for the properties below self._iwid = self._iwid_full = self._meta_dict = None