usbcreator/frontends/gtk/frontend.py line 663:
    def format_dest_clicked(self, *args):
        # FIXME evand 2009-04-30: This needs a big warning dialog.
        model, iterator = self.dest_treeview.get_selection().get_selected()
        if not iterator:
            return
        udi = model[iterator][0]
        self.backend.format(udi)

usbcreator/backends/devicekit/backend.py line 245:
    def format(self, device):
        # TODO evand 2009-08-25: Needs a confirmation dialog.
        try:
            dk = self.bus.get_object('org.freedesktop.DeviceKit.Disks', device)
            device = dk.Get(device, 'device-file', dbus_interface=PROPS_IFACE)
            self.helper.Format(device, timeout=MAX_DBUS_TIMEOUT)
        except dbus.DBusException:
            logging.exception('Could not format the device:')

I don't know python & how to fix but the problem should be somewhere there. 
Maybe 
udi = model[iterator][0] <<-- this zero?
or
dk = self.bus.get_object('org.freedesktop.DeviceKit.Disks.Device', device)  
<<-- Device

-- 
Wrong behaviour on format action
https://bugs.launchpad.net/bugs/484252
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to