From 5742d2e1e77b4f9004b3b7ec8113b5c77e111840 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Mon, 5 May 2008 00:44:08 +0000 Subject: [PATCH] We do not need to check that, it's already done in conn_handlers._MucAdminCB() --- src/config.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/config.py b/src/config.py index 3bcc9b86c..a77342b1d 100644 --- a/src/config.py +++ b/src/config.py @@ -2504,12 +2504,11 @@ class GroupchatConfigWindow: def affiliation_list_received(self, list): '''Fill the affiliation treeview''' for jid in list: - if list[jid].has_key('affiliation'): - affiliation = list[jid]['affiliation'] - if affiliation not in self.affiliation_labels.keys(): - # Unknown affiliation or 'none' affiliation, do not show it - continue - self.list_init[affiliation][jid] = list[jid] + affiliation = list[jid]['affiliation'] + if affiliation not in self.affiliation_labels.keys(): + # Unknown affiliation or 'none' affiliation, do not show it + continue + self.list_init[affiliation][jid] = list[jid] tv = self.affiliation_treeview[affiliation] model = tv.get_model() reason = ''