comparison frontends/src/jp/cmd_adhoc.py @ 1933:16e65f15f31f

plugin adhoc_dbus, jp (cmd/adhoc): fixes adHocDBusAddAuto when no bus is found fix bug 134
author souliane <souliane@mailoo.org>
date Sun, 17 Apr 2016 13:37:40 +0200
parents 96ba685162f6
children 3e168cde7a7d
comparison
equal deleted inserted replaced
1932:44342730df66 1933:16e65f15f31f
46 if self.args.loop: 46 if self.args.loop:
47 flags.append(FLAG_LOOP) 47 flags.append(FLAG_LOOP)
48 bus_name, methods = self.host.bridge.adHocDBusAddAuto(name, jids, self.args.groups, magics, 48 bus_name, methods = self.host.bridge.adHocDBusAddAuto(name, jids, self.args.groups, magics,
49 self.args.forbidden_jids, self.args.forbidden_groups, 49 self.args.forbidden_jids, self.args.forbidden_groups,
50 flags, self.profile) 50 flags, self.profile)
51 if not bus_name:
52 self.disp(_("No bus name found"), 1)
53 return
51 self.disp(_("Bus name found: [%s]" % bus_name), 1) 54 self.disp(_("Bus name found: [%s]" % bus_name), 1)
52 for method in methods: 55 for method in methods:
53 path, iface, command = method 56 path, iface, command = method
54 self.disp(_("Command found: (path:%(path)s, iface: %(iface)s) [%(command)s]" % {'path': path, 57 self.disp(_("Command found: (path:%(path)s, iface: %(iface)s) [%(command)s]" % {'path': path,
55 'iface': iface, 58 'iface': iface,