comparison 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
comparison
equal deleted inserted replaced
2145:f153b3155240 2147:b01a6ef1be4c
660 # check if mail is possible and set flag: 660 # check if mail is possible and set flag:
661 self.mail_enabled = (self.mail_smarthost is not None or self.mail_sendmail is not None) and self.mail_from 661 self.mail_enabled = (self.mail_smarthost is not None or self.mail_sendmail is not None) and self.mail_from
662 662
663 # check if jabber bot is available and set flag: 663 # check if jabber bot is available and set flag:
664 self.jabber_enabled = self.bot_host is not None 664 self.jabber_enabled = self.bot_host is not None
665
666 # if we are to use the jabber bot, instantiate a server object for future use
667 if self.jabber_enabled:
668 from xmlrpclib import Server
669 self.xmlrpc_server = Server("http://" + self.bot_host, )
665 670
666 # Cache variables for the properties below 671 # Cache variables for the properties below
667 self._iwid = self._iwid_full = self._meta_dict = None 672 self._iwid = self._iwid_full = self._meta_dict = None
668 673
669 self.cache.acl_rights_before = AccessControlList(self, [self.acl_rights_before]) 674 self.cache.acl_rights_before = AccessControlList(self, [self.acl_rights_before])