Mercurial > libervia-web
comparison src/browser/sat_browser/menu.py @ 776:627b9073a2ec
browser side: the new menu 'help/official room chat' launch the default_muc room, which can be used to get some help
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 29 Nov 2015 22:58:38 +0100 |
parents | ad733b670cc3 |
children | 7ebde6d1a4bd |
comparison
equal
deleted
inserted
replaced
775:08c6e097ff5d | 776:627b9073a2ec |
---|---|
98 dialog.RoomAndContactsChooser(self.host, join, ok_button="Join", visible=(True, False)) | 98 dialog.RoomAndContactsChooser(self.host, join, ok_button="Join", visible=(True, False)) |
99 | 99 |
100 | 100 |
101 # Help menu | 101 # Help menu |
102 | 102 |
103 def onOfficialChatRoom(self): | |
104 nick = self.host.whoami.node | |
105 self.host.bridge.joinMUC(self.host.default_muc, nick, profile=C.PROF_KEY_NONE, callback=lambda dummy: None, errback=self.host.showFailureRoomInvalid) | |
106 | |
103 def onSocialContract(self): | 107 def onSocialContract(self): |
104 _frame = Frame('contrat_social.html') | 108 _frame = Frame('contrat_social.html') |
105 _frame.setStyleName('infoFrame') | 109 _frame.setStyleName('infoFrame') |
106 _dialog = dialog.GenericDialog("Contrat Social", _frame) | 110 _dialog = dialog.GenericDialog("Contrat Social", _frame) |
107 _dialog.setSize('80%', '80%') | 111 _dialog.setSize('80%', '80%') |