summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof <kkszysiu@gmail.com>2011-03-27 16:34:25 +0200
committerKrzysztof <kkszysiu@gmail.com>2011-03-27 16:34:25 +0200
commitb0766c1528f5fb47a99aaab570a85de38deb3c2d (patch)
tree6af37995d3c56a2a97dc70690412d83dcdcbb09b
parent30f24ed1224ffaef679e0b07d92d8ed5d981f1fb (diff)
Revert "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, 4 insertions, 2 deletions
diff --git a/sunshine/channel/group.py b/sunshine/channel/group.py
index ced603a..d094364 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_ref().exportContactsFile)
+ reactor.callLater(3.0, self._conn.exportContactsFile)
def Close(self):
diff --git a/sunshine/lqsoft/pygadu/models.py b/sunshine/lqsoft/pygadu/models.py
index 14c8cdb..c3149b5 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 change your status or presence.")
+ raise RuntimeError("You need to be connected, to import contact list from the server.")
self.__connection.changeStatus(new_state, new_description)
diff --git a/sunshine/lqsoft/pygadu/twisted_protocol.py b/sunshine/lqsoft/pygadu/twisted_protocol.py
index f3a4b04..859e256 100755
--- a/sunshine/lqsoft/pygadu/twisted_protocol.py
+++ b/sunshine/lqsoft/pygadu/twisted_protocol.py
@@ -276,6 +276,8 @@ 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