comparison libervia.py @ 361:f4efffb9627c

browser_side: the popup notifying the message's recipient is no more dependent to the unibox.
author souliane <souliane@mailoo.org>
date Wed, 19 Feb 2014 14:17:03 +0100
parents f488692c4903
children 564208366dd6
comparison
equal deleted inserted replaced
360:9834136b15ed 361:f4efffb9627c
855 self.bridge.call('sendMessage', (None, self.sendError), addresses[0][1], text, '', type_, extra) 855 self.bridge.call('sendMessage', (None, self.sendError), addresses[0][1], text, '', type_, extra)
856 else: 856 else:
857 extra.update({'address': '\n'.join([('%s:%s' % entry) for entry in addresses])}) 857 extra.update({'address': '\n'.join([('%s:%s' % entry) for entry in addresses])})
858 self.bridge.call('sendMessage', (None, self.sendError), self.whoami.domain, text, '', type_, extra) 858 self.bridge.call('sendMessage', (None, self.sendError), self.whoami.domain, text, '', type_, extra)
859 859
860 def showWarning(self, type_=None, msg=None):
861 """Display a popup information message, e.g. to notify the recipient of a message being composed.
862 If type_ is None, a popup being currently displayed will be hidden.
863 @type_: a type determining the CSS style to be applied (see WarningPopup.showWarning)
864 @msg: message to be displayed
865 """
866 if not hasattr(self, "warning_popup"):
867 self.warning_popup = panels.WarningPopup()
868 self.warning_popup.showWarning(type_, msg)
869
860 870
861 if __name__ == '__main__': 871 if __name__ == '__main__':
862 pyjd.setup("http://localhost:8080/libervia.html") 872 pyjd.setup("http://localhost:8080/libervia.html")
863 app = SatWebFrontend() 873 app = SatWebFrontend()
864 app.onModuleLoad() 874 app.onModuleLoad()