diff src/browser/sat_browser/contact_panel.py @ 721:102bab805ec1

browser side(xmlui): basic JidsList implementation (read-only) using ContactsPanel, to fix params display
author Goffi <goffi@goffi.org>
date Fri, 21 Aug 2015 15:38:20 +0200
parents e86490a7c76e
children 76a9c074327b
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_panel.py	Fri Aug 21 15:37:21 2015 +0200
+++ b/src/browser/sat_browser/contact_panel.py	Fri Aug 21 15:38:20 2015 +0200
@@ -26,7 +26,6 @@
 
 from pyjamas.ui.VerticalPanel import VerticalPanel
 
-import html_tools
 import contact_widget
 from constants import Const as C
 
@@ -73,6 +72,14 @@
         """
         return contact_jid.bare if self.merge_resources else contact_jid
 
+    def getJids(self):
+        """Return jids present in the panel
+
+        @return (list[jid.JID]): full jids or bare jids if self.merge_resources is True
+        """
+        return self.contacts.keys()
+
+
     def clear(self):
         """Clear all contacts."""
         self._contacts.clear()