summaryrefslogtreecommitdiff
path: root/sunshine/connection.py
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-09-05 23:34:08 +0200
committerKrzysztof <kkszysiu@gmail.com>2011-03-27 16:57:18 +0200
commit8ecab897afbebfc549e41de991d5d0302b06a19b (patch)
tree0736e8680a679a5caa0e2ff96feeb6a8063fc1e2 /sunshine/connection.py
parent3a7d6643f1f9cf3ad1e738b4c359b87ba5beac62 (diff)
Sunshine should now work on twisted versions older than 0.9.0 but with disabled functions like avatar uploading and contact info.
Diffstat (limited to 'sunshine/connection.py')
-rw-r--r--sunshine/connection.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sunshine/connection.py b/sunshine/connection.py
index 9ed58b7..2d93dd9 100644
--- a/sunshine/connection.py
+++ b/sunshine/connection.py
@@ -190,7 +190,8 @@ class SunshineConnection(telepathy.server.Connection,
logger.info("We have %s contacts in file." % (self.configfile.get_contacts_count()))
self.factory = GaduClientFactory(self.profile)
- self.ggapi = GG_Oauth(self.profile.uin, parameters['password'])
+ if check_requirements() == True:
+ self.ggapi = GG_Oauth(self.profile.uin, parameters['password'])
self._channel_manager = SunshineChannelManager(self)
@@ -206,7 +207,8 @@ class SunshineConnection(telepathy.server.Connection,
SunshinePresence.__init__(self)
SunshineAvatars.__init__(self)
SunshineCapabilities.__init__(self)
- SunshineContactInfo.__init__(self)
+ if check_requirements() == True:
+ SunshineContactInfo.__init__(self)
SunshineContacts.__init__(self)
self.updateCapabilitiesCalls()