virt-manager/virtManager
Martin Kletzander 3b9c397d11 Handle storage formats properly
This simple patch fixes three issues:

 1) We used only one list of storage formats.  However, we are able to
    use some formats which we cannot create.  This patch adds a list
    called 'no_create_formats' and moves such formats (currently only
    one) into it and uses new parameter 'create' which describes
    whether such formats should be removed or not.

 2) When creating new storage with the above fixed, we need to set the
    combobox's text to "" in order not to change it to "raw".  This
    was already done in reset_state(), but we need it also when
    toggle_storage_select() happens and it doesn't hurt in
    set_initial_state(), so I abstracted the implementation into
    populate_disk_format_combo().

 3) It's a bit unrelated, but when bus of a domain disk gets changed
    (in details.py), the address was not cleaned up properly ('target'
    attribute was still kept), so I fixed up the VirtualDeviceAddress
    as well.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=907289
2013-08-21 11:12:42 +02:00
..
__init__.py Remove autotools, replace with distutils-extra 2013-04-03 18:20:51 -04:00
about.py Revive pep8 and clean up the code 2013-04-13 15:22:43 -04:00
addhardware.py Handle storage formats properly 2013-08-21 11:12:42 +02:00
asyncjob.py VirtualConnection: cache version lookups 2013-07-06 15:39:00 -04:00
autodrawer.py autodrawer: Fix a gtk assertion at app shutdown 2013-06-13 14:10:59 -04:00
baseclass.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
choosecd.py uihelpers: Drop global error dialog 2013-07-09 09:20:43 -04:00
clone.py VirtualNetworkInterface: Drop all XML __init__ params 2013-07-15 14:14:05 -04:00
config.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
connect.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
connectauth.py Convert all DBus usage to Gio GDBUS 2013-04-16 15:22:09 -04:00
connection.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
console.py console: Don't double create spice display 2013-07-09 17:50:05 -04:00
create.py qemu ARM support: wire up virtio, fix a bunch of defaults 2013-08-18 12:30:58 -04:00
createinterface.py Fix spelling error in function names 2013-08-18 12:30:58 -04:00
createnet.py createnet: Refresh forward device list when wizard is launched 2013-08-05 17:20:05 -04:00
createpool.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
createvol.py virt-manager: vmmCreateVolume uses the correct connection 2013-08-14 20:42:27 -04:00
delete.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
details.py Handle storage formats properly 2013-08-21 11:12:42 +02:00
domain.py Handle storage formats properly 2013-08-21 11:12:42 +02:00
engine.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
error.py error: use helper function to embed customized widget into dialog 2013-07-01 14:33:32 -04:00
graphwidgets.py Remove a bunch of outdates FIXME/XXX comments 2013-04-17 09:32:00 -04:00
host.py virt-manager: fix "Copy Volume Path" in storage pool details window 2013-08-14 20:42:27 -04:00
inspection.py inspection: Don't recursively try to inspect guestfs-* temporary VMs. 2013-06-28 13:05:16 -04:00
interface.py Centralize XML helpers in virtinst/util.py 2013-07-12 13:10:23 -04:00
keyring.py keyring: Convert to Secrets DBUS API 2013-04-16 16:20:58 -04:00
libvirtobject.py connection: Pass nostatsupdate through to VM tick 2013-07-07 09:42:21 -04:00
manager.py virt-manager: ignore VIR_ERR_NO_DOMAIN when a domain was just deleted 2013-08-16 11:51:15 -04:00
mediadev.py connection: Do non-VM polling on demand 2013-07-07 12:17:54 -04:00
migrate.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
module_trace.py Fix --trace-libvirt option 2013-07-06 14:33:02 -04:00
netdev.py Remove HAL support 2013-04-15 19:51:46 -04:00
network.py Centralize XML helpers in virtinst/util.py 2013-07-12 13:10:23 -04:00
nodedev.py connection: Do non-VM polling on demand 2013-07-07 12:17:54 -04:00
packageutils.py packagekit: Allow cancelling package search 2013-06-13 17:37:12 -04:00
preferences.py prefs: Remove distinction between local and remote sound 2013-04-23 14:21:46 -04:00
serialcon.py VirtualCharDevice: Convert to new style XML props, rework API 2013-07-23 17:34:31 -04:00
storagebrowse.py virt-manager: automatically select newly created volume 2013-08-14 20:42:27 -04:00
storagepool.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
storagevol.py virtManager: Drop util, combine it with virtinst.util and uihelpers 2013-08-11 12:39:28 -04:00
systray.py Switch AppIndicator code to use GObject introspection. 2013-07-29 14:45:06 -04:00
uihelpers.py Handle storage formats properly 2013-08-21 11:12:42 +02:00