summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-08-31 02:32:32 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-08-31 02:32:32 +0200
commitc497f973d6359537ba1d28810ca2da404b89ae4e (patch)
tree4ae8092301bcbc71d821341ddf9448fbf8cbe852
parent30b5d32b00c6b2afec6459a80be7adcdb8466565 (diff)
Minor updates
-rw-r--r--sunshine/channel/group.py2
-rwxr-xr-xsunshine/lqsoft/pygadu/models.py2
-rwxr-xr-xsunshine/lqsoft/pygadu/twisted_protocol.py2
3 files changed, 2 insertions, 4 deletions
diff --git a/sunshine/channel/group.py b/sunshine/channel/group.py
index d094364..ced603a 100644
--- a/sunshine/channel/group.py
+++ b/sunshine/channel/group.py
@@ -102,7 +102,7 @@ class SunshineGroupChannel(SunshineListChannel):
group = self._handle.group
self.delete_contact_from_group(group, contact, contact_handle)
- reactor.callLater(3.0, self._conn.exportContactsFile)
+ reactor.callLater(3.0, self._conn_ref().exportContactsFile)
def Close(self):
diff --git a/sunshine/lqsoft/pygadu/models.py b/sunshine/lqsoft/pygadu/models.py
index c3149b5..14c8cdb 100755
--- a/sunshine/lqsoft/pygadu/models.py
+++ b/sunshine/lqsoft/pygadu/models.py
@@ -111,7 +111,7 @@ class GaduProfile(object):
def setMyState(self, new_state, new_description=''):
if not self.connected:
- raise RuntimeError("You need to be connected, to import contact list from the server.")
+ raise RuntimeError("You need to be connected, to change your status or presence.")
self.__connection.changeStatus(new_state, new_description)
diff --git a/sunshine/lqsoft/pygadu/twisted_protocol.py b/sunshine/lqsoft/pygadu/twisted_protocol.py
index 859e256..f3a4b04 100755
--- a/sunshine/lqsoft/pygadu/twisted_protocol.py
+++ b/sunshine/lqsoft/pygadu/twisted_protocol.py
@@ -276,8 +276,6 @@ class GaduClient(Protocol):
def changeStatus(self, status, desc=''):
change_status_class = Resolver.by_name('ChangeStatusPacket')
- print ChangeStatusPacket.STATUS.FFC
-
if status == 'NOT_AVAILABLE':
if desc == '' or desc == None:
gg_status = change_status_class.STATUS.NOT_AVAILABLE