changeset 0c6bb3ae90e1 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=0c6bb3ae90e1
description: fix unexpected indent
diffstat:
src/roster_window.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r a669ca598089 -r 0c6bb3ae90e1 src/roster_window.py
--- a/src/roster_window.py Wed Aug 22 22:28:41 2012 +0400
+++ b/src/roster_window.py Wed Aug 22 22:42:00 2012 +0400
@@ -1194,9 +1194,9 @@
# the treeview
if contact.status and gajim.config.get('show_status_msgs_in_roster'):
status = contact.status.strip()
- if status != '':
- status = helpers.reduce_chars_newlines(status,
- max_lines = 1)
+ if status != '':
+ status = helpers.reduce_chars_newlines(status,
+ max_lines = 1)
# escape markup entities and make them small
# italic and fg color color is calcuted to be
# always readable
changeset a669ca598089 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=a669ca598089
description: revert test patch. fix previous commit
diffstat:
src/roster_window.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (17 lines):
diff -r 89ca4c2f1dd0 -r a669ca598089 src/roster_window.py
--- a/src/roster_window.py Wed Aug 22 22:21:26 2012 +0400
+++ b/src/roster_window.py Wed Aug 22 22:28:41 2012 +0400
@@ -1192,10 +1192,10 @@
# add status msg, if not empty, under contact name in
# the treeview
- if not contact.status:
- contact.status = ' '
if contact.status and gajim.config.get('show_status_msgs_in_roster'):
- status = helpers.reduce_chars_newlines(contact.status,
+ status = contact.status.strip()
+ if status != '':
+ status = helpers.reduce_chars_newlines(status,
max_lines = 1)
# escape markup entities and make them small
# italic and fg color color is calcuted to be
changeset 89ca4c2f1dd0 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=89ca4c2f1dd0
description: plugin system. checking the type of stored data. Fix #7220
diffstat:
src/plugins/plugin.py | 2 ++
src/roster_window.py | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 2359e1b05621 -r 89ca4c2f1dd0 src/plugins/plugin.py
--- a/src/plugins/plugin.py Mon Aug 20 15:46:20 2012 +0200
+++ b/src/plugins/plugin.py Wed Aug 22 22:21:26 2012 +0400
@@ -259,6 +259,8 @@
s = shelve.open(self.FILE_PATH)
for (k, v) in s.iteritems():
self.data[k] = v
+ if not isinstance(self.data, dict):
+ raise GajimPluginException
s.close()
self.save()
except:
diff -r 2359e1b05621 -r 89ca4c2f1dd0 src/roster_window.py
--- a/src/roster_window.py Mon Aug 20 15:46:20 2012 +0200
+++ b/src/roster_window.py Wed Aug 22 22:21:26 2012 +0400
@@ -1192,10 +1192,10 @@
# add status msg, if not empty, under contact name in
# the treeview
+ if not contact.status:
+ contact.status = ' '
if contact.status and gajim.config.get('show_status_msgs_in_roster'):
- status = contact.status.strip()
- if status != '':
- status = helpers.reduce_chars_newlines(status,
+ status = helpers.reduce_chars_newlines(contact.status,
max_lines = 1)
# escape markup entities and make them small
# italic and fg color color is calcuted to be
changeset 83d5005aedaa in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=83d5005aedaa
description: make using receiver proxy work
diffstat:
src/common/jingle_ft.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r d6901d0eed53 -r 83d5005aedaa src/common/jingle_ft.py
--- a/src/common/jingle_ft.py Wed Aug 22 14:49:44 2012 +0200
+++ b/src/common/jingle_ft.py Wed Aug 22 18:09:40 2012 +0200
@@ -110,9 +110,12 @@
def __state_changed(self, nextstate, args=None):
# Executes the next state action and sets the next state
+ current_state = self.state
st = self.states[nextstate]
st.action(args)
- self.state = nextstate
+ # state can have been changed during the action. Don't go back.
+ if self.state == current_state:
+ self.state = nextstate
def __on_session_initiate(self, stanza, content, error, action):
gajim.nec.push_incoming_event(FileRequestReceivedEvent(None,