From fb40ac54fc6e9fe79f29fd99e836187e95bb0509 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 5 Mar 2011 21:42:56 +0100 Subject: Kind of big cleanup. Core and Connection classes are now used as singletons, we do not need to pass them to each Tab and Win. This remove a lot of arguments to varius methods. --- src/connection.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/connection.py') diff --git a/src/connection.py b/src/connection.py index c12680b8..089c43b8 100644 --- a/src/connection.py +++ b/src/connection.py @@ -37,10 +37,11 @@ class Connection(sleekxmpp.ClientXMPP): Receives everything from Jabber and emits the appropriate signals """ + __init = False def __init__(self): resource = config.get('resource', '') if config.get('jid', ''): - self.anon = False # Field used to know if we are anonymous or not. + self.anon = False # Field used to know if we are anonymous or not. # many features will be handled diferently # depending on this setting jid = '%s/%s' % (config.get('jid', ''), resource) @@ -79,6 +80,3 @@ class Connection(sleekxmpp.ClientXMPP): return False self.process(threaded=True) return True - -# Global connection object -connection = Connection() -- cgit v1.2.3