Mercurial > libervia-backend
comparison sat_frontends/jp/base.py @ 2705:0bb811aaf11d
jp (base): new own_jid host attribute:
this attribute is None by default and must be filled at runtime if needed by a command.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Dec 2018 10:42:25 +0100 |
parents | ab37d1c7c38c |
children | bad70aa70c87 |
comparison
equal
deleted
inserted
replaced
2704:ab37d1c7c38c | 2705:0bb811aaf11d |
---|---|
189 # outputs | 189 # outputs |
190 self._outputs = {} | 190 self._outputs = {} |
191 for type_ in C.OUTPUT_TYPES: | 191 for type_ in C.OUTPUT_TYPES: |
192 self._outputs[type_] = OrderedDict() | 192 self._outputs[type_] = OrderedDict() |
193 self.default_output = {} | 193 self.default_output = {} |
194 | |
195 self.own_jid = None # must be filled at runtime if needed | |
194 | 196 |
195 def _bridgeEb(self, failure): | 197 def _bridgeEb(self, failure): |
196 if isinstance(failure, exceptions.BridgeExceptionNoService): | 198 if isinstance(failure, exceptions.BridgeExceptionNoService): |
197 print(_(u"Can't connect to SàT backend, are you sure it's launched ?")) | 199 print(_(u"Can't connect to SàT backend, are you sure it's launched ?")) |
198 elif isinstance(failure, exceptions.BridgeInitError): | 200 elif isinstance(failure, exceptions.BridgeInitError): |