Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_remote.py @ 306:e2afbec1d178
remote: enforce unicode in bridge methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 20 Jul 2019 15:53:50 +0200 |
parents | b2727877bad4 |
children | 772c170b47a9 |
comparison
equal
deleted
inserted
replaced
305:b2727877bad4 | 306:e2afbec1d178 |
---|---|
109 callback=self.updateUI, | 109 callback=self.updateUI, |
110 errback=self.main_wid.errback) | 110 errback=self.main_wid.errback) |
111 | 111 |
112 def on_remote_item(self, __, remote): | 112 def on_remote_item(self, __, remote): |
113 NS_MEDIA_PLAYER = G.host.ns_map[u"mediaplayer"] | 113 NS_MEDIA_PLAYER = G.host.ns_map[u"mediaplayer"] |
114 G.host.bridge.adHocRun(remote.device_jid, NS_MEDIA_PLAYER, self.profile, | 114 G.host.bridge.adHocRun(unicode(remote.device_jid), NS_MEDIA_PLAYER, self.profile, |
115 callback=self.adHocRunCb, | 115 callback=self.adHocRunCb, |
116 errback=self.main_wid.errback) | 116 errback=self.main_wid.errback) |
117 | 117 |
118 def do_cmd(self, command): | 118 def do_cmd(self, command): |
119 try: | 119 try: |
165 xml_ui.setCloseCb(self.onClose) | 165 xml_ui.setCloseCb(self.onClose) |
166 self.main_wid.layout.add_widget(xml_ui) | 166 self.main_wid.layout.add_widget(xml_ui) |
167 | 167 |
168 def do_item_action(self, touch): | 168 def do_item_action(self, touch): |
169 self.main_wid.layout.clear_widgets() | 169 self.main_wid.layout.clear_widgets() |
170 G.host.bridge.adHocRun(self.entity_jid, u'', self.profile, | 170 G.host.bridge.adHocRun(unicode(self.entity_jid), u'', self.profile, |
171 callback=self.adHocRunCb, errback=self.main_wid.errback) | 171 callback=self.adHocRunCb, errback=self.main_wid.errback) |
172 | 172 |
173 | 173 |
174 class DevicesLayout(FloatLayout): | 174 class DevicesLayout(FloatLayout): |
175 """Layout used to show devices""" | 175 """Layout used to show devices""" |