Mercurial > libervia-web
comparison src/browser/sat_browser/panels.py @ 482:437eefa53a01
misc: remove some pylint errors and warnings
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 15 Jun 2014 18:16:24 +0200 |
parents | 992b900ab876 |
children | 587fe75d1b16 |
comparison
equal
deleted
inserted
replaced
481:bbdc5357dc00 | 482:437eefa53a01 |
---|---|
976 for _group in groups: | 976 for _group in groups: |
977 if _group not in self._accepted_groups: | 977 if _group not in self._accepted_groups: |
978 self._accepted_groups.append(_group) | 978 self._accepted_groups.append(_group) |
979 self._accepted_groups.sort() | 979 self._accepted_groups.sort() |
980 | 980 |
981 def isJidAccepted(self, jid): | 981 def isJidAccepted(self, jid_s): |
982 """Tell if a jid is actepted and shown in this panel | 982 """Tell if a jid is actepted and shown in this panel |
983 @param jid: jid | 983 @param jid_s: jid |
984 @return: True if the jid is accepted""" | 984 @return: True if the jid is accepted""" |
985 if self.accept_all(): | 985 if self.accept_all(): |
986 return True | 986 return True |
987 for group in self._accepted_groups: | 987 for group in self._accepted_groups: |
988 if self.host.contact_panel.isContactInGroup(group, jid): | 988 if self.host.contact_panel.isContactInGroup(group, jid_s): |
989 return True | 989 return True |
990 return False | 990 return False |
991 | 991 |
992 | 992 |
993 class StatusPanel(base_panels.HTMLTextEditor): | 993 class StatusPanel(base_panels.HTMLTextEditor): |