From 41fec54c305d4a81245e9e294c7fc29fed9b7b00 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 2 May 2010 15:03:32 +0200 Subject: Added config file --- connection/xmpp.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'connection') diff --git a/connection/xmpp.py b/connection/xmpp.py index 1b2dcf1..2c45291 100644 --- a/connection/xmpp.py +++ b/connection/xmpp.py @@ -112,12 +112,8 @@ class VersionHandler(object): class XMPPConnection(Client): - _jid = JID('curunir@jabber.ccc.de/Orthanc') - _password = '' - _cert_file = 'cacert.pem' - - def __init__(self): - Client.__init__(self, self._jid, self._password, tls_settings = TLSSettings(require = True, cacert_file = self._cert_file)) + def __init__(self, config): + Client.__init__(self, JID(config['jid']), config['password'], tls_settings = TLSSettings(require = True, cacert_file = config['cacertfile'])) self.interface_providers = [ MessageHandler(self), -- cgit v1.2.3