virt-manager/virtinst
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 virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
capabilities.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
cli.py virt-install: Add --boot dtb=DTB support 2013-08-16 19:25:26 -04:00
clock.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
cloner.py guest: Drop removeOld parameter, just use Guest.replace 2013-08-11 12:39:28 -04:00
connection.py Fix remote URL installs 2013-07-25 16:21:30 -04:00
cpu.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
device.py Handle storage formats properly 2013-08-21 11:12:42 +02:00
deviceaudio.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicechar.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicecontroller.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicedisk.py VirtualDisk: Add is_disk, is_cdrom, is_floppy helpers 2013-08-17 14:21:30 -04:00
devicefilesystem.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicegraphics.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicehostdev.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
deviceinput.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
deviceinterface.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicememballoon.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
deviceredirdev.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicesmartcard.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicetpm.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicevideo.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
devicewatchdog.py VirtualWatchdog: Add dump action 2013-08-18 16:06:18 -04:00
diskbackend.py Fix remote URL installs 2013-07-25 16:21:30 -04:00
distroinstaller.py Guest: Drop os_type, just use single os_variant 2013-08-11 12:39:36 -04:00
domainfeatures.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
domainnumatune.py guest: Move cpuset static functions to DomainNumatune 2013-08-11 12:39:28 -04:00
guest.py qemu ARM support: wire up virtio, fix a bunch of defaults 2013-08-18 12:30:58 -04:00
hostkeymap.py hostkeymap: Globally cache the host lookup 2013-07-13 20:58:09 -04:00
installer.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
interface.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
nodedev.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
osdict.py qemu ARM support: wire up virtio, fix a bunch of defaults 2013-08-18 12:30:58 -04:00
osxml.py qemu ARM support: wire up virtio, fix a bunch of defaults 2013-08-18 12:30:58 -04:00
pollhelpers.py connection: Support listAll* object lookups 2013-07-07 15:06:09 -04:00
seclabel.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
storage.py virtinst: Rename most files to be more sensible 2013-08-09 08:54:39 -04:00
support.py qemu ARM support: wire up virtio, fix a bunch of defaults 2013-08-18 12:30:58 -04:00
urlfetcher.py Guest: Drop OS listing helpers, and OS_TYPES back compat 2013-08-11 14:52:30 -04:00
util.py Fix UUID generation according to RFC 4122 2013-08-19 10:56:56 +02:00
virtimage.py virtinst: Combine ImageInstaller and ImageParser code 2013-08-08 21:00:37 -04:00
xmlbuilder.py virtinst: Fix import ordering to standardize on relative imports 2013-08-08 20:49:50 -04:00